Uniformly distributed random numbers | 您所在的位置:网站首页 › matlabrnd › Uniformly distributed random numbers |
The stream syntax rand(s,___) is not supported on a GPU. You can specify typename as 'gpuArray'. If you specify typename as 'gpuArray', the default underlying type of the array is double. To create a GPU array with underlying type datatype, specify the underlying type as an additional argument before typename. For example, X = rand(3,datatype,'gpuArray') creates a 3-by-3 GPU array of random numbers with underlying type datatype. You can specify the underlying type datatype as one of these options: 'double' 'single'
You can also specify the numeric variable p as a gpuArray. If you specify p as a gpuArray, the underlying type of the returned array is the same as p. |
CopyRight 2018-2019 实验室设备网 版权所有 |