normal_like

Function normal_like 

Source
pub fn normal_like<T: Num, S: DimTrait, D: DeviceBase>(
    mean: T,
    std_dev: T,
    a: &Matrix<Owned<T>, S, D>,
    seed: Option<u64>,
) -> Matrix<Owned<T>, S, D>
Expand description

Creates a matrix filled with random values from a normal distribution with the same shape as another matrix.

ยงArguments

  • mean - The mean of the normal distribution.
  • std_dev - The standard deviation of the normal distribution.
  • a - The matrix whose shape is used.
  • seed - An optional seed for the random number generator.