|
| void | cytnx::random::Make_normal (Storage &Sin, const double &mean, const double &std, const unsigned int &seed=std::random_device()()) |
| | Randomize the memory of a Storage with normal distributon.
|
| |
| void | cytnx::random::Make_uniform (Storage &Sin, const double &low=0, const double &high=1, const unsigned int &seed=std::random_device()()) |
| | Randomize the memory of a Storage with uniform distributon.
|
| |
| void | cytnx::random::Make_normal (Tensor &Tin, const double &mean, const double &std, const unsigned int &seed=std::random_device()()) |
| | Randomize the memory of a Tensor with normal distributon.
|
| |
| void | cytnx::random::Make_uniform (Tensor &Tin, const double &low=0, const double &high=1, const unsigned int &seed=std::random_device()()) |
| | Randomize the memory of a Tensor with uniform distributon.
|
| |
| void | cytnx::random::Make_normal (UniTensor &Tin, const double &mean, const double &std, const unsigned int &seed=std::random_device()()) |
| | Randomize the memory of a UniTensor with normal distributon.
|
| |
| void | cytnx::random::Make_uniform (UniTensor &Tin, const double &low=0, const double &high=1, const unsigned int &seed=std::random_device()()) |
| | Randomize the memory of a UniTensor with uniform distributon.
|
| |
| Tensor | cytnx::random::normal (const cytnx_uint64 &Nelem, const double &mean, const double &std, const int &device=Device.cpu, const unsigned int &seed=std::random_device()()) |
| | create an Tensor with all the elements are initialized with normal distribution
|
| |
| Tensor | cytnx::random::normal (const std::vector< cytnx_uint64 > &Nelem, const double &mean, const double &std, const int &device=Device.cpu, const unsigned int &seed=std::random_device()()) |
| | create an Tensor with all the elements are initialized with normal distribution
|
| |
| Tensor | cytnx::random::uniform (const cytnx_uint64 &Nelem, const double &low, const double &high, const int &device=Device.cpu, const unsigned int &seed=std::random_device()()) |
| | create an Tensor with all the elements are initialized with uniform distribution
|
| |
| Tensor | cytnx::random::uniform (const std::vector< cytnx_uint64 > &Nelem, const double &low, const double &high, const int &device=Device.cpu, const unsigned int &seed=std::random_device()()) |
| | create an Tensor with all the elements are initialized with uniform distribution
|
| |