Gaussian¶
An \(m \times n\) matrix is Gaussian if each entry is independently drawn from a normal distribution.
C++ API¶
-
void
Gaussian
(AbstractDistMatrix<T> &A, Int m, Int n, T mean = 0, Base<T> stddev = 1)¶ Sets the matrix
A
to an \(m \times n\) Gaussian matrix with the specified mean and standard deviation.
-
void
MakeGaussian
(Matrix<T> &A, T mean = 0, Base<T> stddev = 1)¶
-
void
MakeGaussian
(AbstractDistMatrix<T> &A, T mean = 0, Base<T> stddev = 1)¶ Changes each entry to an independent sample from the specified normal distribution.
C API¶
-
ElError
ElGaussian_c
(ElMatrix_c A, ElInt m, ElInt n, complex_float mean, float stddev)¶
-
ElError
ElGaussian_z
(ElMatrix_z A, ElInt m, ElInt n, complex_double mean, double stddev)¶
-
ElError
ElGaussianDist_c
(ElDistMatrix_c A, ElInt m, ElInt n, complex_float mean, float stddev)¶
-
ElError
ElGaussianDist_z
(ElDistMatrix_z A, ElInt m, ElInt n, complex_double mean, double stddev)¶