pub fn orthogonal_init(
shape: &[usize],
gain: f64,
rng: &mut InitRng,
) -> Result<ArrayD<f64>, InitError>Expand description
Orthogonal initialization via QR-like Gram-Schmidt on a random matrix.
Generates a random matrix, then orthogonalises it. For non-square shapes
the result is reshaped to the requested dimensions. The gain parameter
scales the resulting orthogonal matrix.