matlab gather,matlab的gpuArray数据类型的计算

help classUnderlying

classUnderlying - Class of elements within gpuArray or distributed array

This MATLAB function returns the name of the class of the elements contained

within the gpuArray or distributed array D.

C = classUnderlying(D)

显示的是gpuArray矩阵类型中的元素的类型

help RCOND

rcond - Reciprocal condition number

This MATLAB function returns an estimate for the reciprocal condition of A in

1-norm.

这表示矩阵的条件数;矩阵A的条件数等于A的范数与A的逆的范数的乘积,即cond(A)=‖A‖・‖A^(-1)‖,对应矩阵的3种范数,相应地可以定义3种条件数。 函数 cond(A,1)、cond(A)或cond(A inf) 是判断矩阵病态与否的一种度量,条件数越大矩阵越病态。;如果矩阵好也就是求解稳定,则其条件数大概为1;如果病态矩阵则其条件数接近EPS.条件数事实上表示了矩阵计算对于误差的敏感性。对于线性方程组Ax=b,如果A的条件数大,b的微小改变就能引起解x较大的改变,数值稳定性差。如果A的条件数小,b有微小的改变,x的改变也很微小,数值稳定性好。一个极端的例子,当A奇异时,条件数为无穷,这时即使不改变b,x也可以改变。奇异的本质原因在于矩阵有0特征值,x在对应特征向量的方向上运动不改变Ax的值。

gather - Transfer distributed array data or gpuArray to local workspace

This MATLAB function can operate inside an spmd statement, pmode, or

communicating job to gather together the data of a codistributed array, or

outside an spmd statement to gather the data of a distributed array.

这是将gpuArray类型的转化为matlabworkspace空间的类型的函数。也就是将gpu上运行的数据转化到cpu上。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值