Create a random array sampled from normal distribution. More...
Functions | |
| AFAPI array | randn (const dim4 &dims, const dtype ty, randomEngine &r) |
| C++ Interface to create an array of random numbers normally distributed. | |
| AFAPI array | randn (const dim4 &dims, const dtype ty=f32) |
| C++ Interface to create an array of random numbers normally distributed. | |
| AFAPI array | randn (const dim_t d0, const dtype ty=f32) |
| C++ Interface to create an array of random numbers normally distributed. | |
| AFAPI array | randn (const dim_t d0, const dim_t d1, const dtype ty=f32) |
| C++ Interface to create an array of random numbers normally distributed. | |
| AFAPI array | randn (const dim_t d0, const dim_t d1, const dim_t d2, const dtype ty=f32) |
| C++ Interface to create an array of random numbers normally distributed. | |
| AFAPI array | randn (const dim_t d0, const dim_t d1, const dim_t d2, const dim_t d3, const dtype ty=f32) |
| C++ Interface to create an array of random numbers normally distributed. | |
| AFAPI af_err | af_random_normal (af_array *out, const unsigned ndims, const dim_t *const dims, const af_dtype type, af_random_engine engine) |
| C Interface to create an array of normal numbers using a random engine. | |
| AFAPI af_err | af_randn (af_array *out, const unsigned ndims, const dim_t *const dims, const af_dtype type) |
Create a random array sampled from normal distribution.
The type of engine used is defined by randomEngine.
The data is centered around 0.
| AFAPI af_err af_randn | ( | af_array * | out, |
| const unsigned | ndims, | ||
| const dim_t *const | dims, | ||
| const af_dtype | type ) |
| [out] | out | generated array |
| [in] | ndims | number of dimensions |
| [in] | dims | array containing sizes of the dimension |
| [in] | type | type of array to generate |
| AFAPI af_err af_random_normal | ( | af_array * | out, |
| const unsigned | ndims, | ||
| const dim_t *const | dims, | ||
| const af_dtype | type, | ||
| af_random_engine | engine ) |
C Interface to create an array of normal numbers using a random engine.
| [out] | out | pointer to the returned object |
| [in] | ndims | number of dimensions |
| [in] | dims | C pointer with ndims elements; each value represents the size of that dimension |
| [in] | type | type of the af_array object |
| [in] | engine | random engine object |
| AFAPI array randn | ( | const dim4 & | dims, |
| const dtype | ty, | ||
| randomEngine & | r ) |
C++ Interface to create an array of random numbers normally distributed.
| [in] | dims | dimensions of the array to be generated |
| [in] | ty | type of the array |
| [in] | r | random engine object |
C++ Interface to create an array of random numbers normally distributed.
| [in] | dims | dimensions of the array to be generated |
| [in] | ty | type of the array |
| AFAPI array randn | ( | const dim_t | d0, |
| const dim_t | d1, | ||
| const dim_t | d2, | ||
| const dim_t | d3, | ||
| const dtype | ty = f32 ) |
C++ Interface to create an array of random numbers normally distributed.
| [in] | d0 | size of the first dimension |
| [in] | d1 | size of the second dimension |
| [in] | d2 | size of the third dimension |
| [in] | d3 | size of the fourth dimension |
| [in] | ty | type of the array |
C++ Interface to create an array of random numbers normally distributed.
| [in] | d0 | size of the first dimension |
| [in] | d1 | size of the second dimension |
| [in] | d2 | size of the third dimension |
| [in] | ty | type of the array |
C++ Interface to create an array of random numbers normally distributed.
| [in] | d0 | size of the first dimension |
| [in] | d1 | size of the second dimension |
| [in] | ty | type of the array |