Function zenu_matrix::constructor::rand::normal
source · pub fn normal<T: Num, D: DimTrait>(
mean: T,
std_dev: T,
shape: D,
seed: Option<u64>
) -> Matrix<OwnedMem<T>, D>where
StandardNormal: Distribution<T>,
Expand description
Creates a matrix filled with random values from a normal distribution.
§Arguments
mean
- The mean of the normal distribution.std_dev
- The standard deviation of the normal distribution.shape
- The shape of the matrix.seed
- An optional seed for the random number generator.