Uniformly distributed random numbers 您所在的位置:网站首页 matlabrnd Uniformly distributed random numbers

Uniformly distributed random numbers

2023-07-19 23:15| 来源: 网络整理| 查看: 265

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 实验室设备网 版权所有