Skip to main content

orthogonal

Function orthogonal 

Source
pub fn orthogonal(
    rows: usize,
    cols: usize,
    seed: u64,
) -> Result<Tensor, ModelError>
Expand description

Orthogonal initialization via QR decomposition (simplified Gram-Schmidt).

Creates a matrix of shape [rows, cols] with orthonormal rows (or columns).