pub fn uniform<T, S: DimTrait, D: DeviceBase>(
low: T,
high: T,
shape: S,
seed: Option<u64>,
) -> Matrix<Owned<T>, S, D>
Expand description
Creates a matrix filled with random values from a uniform distribution.
ยงArguments
low
- The lower bound of the uniform distribution.high
- The upper bound of the uniform distribution.shape
- The shape of the matrix.seed
- An optional seed for the random number generator.