Function qrd

Source
pub fn qrd(psi: &Psi) -> Result<(Mat<f64>, Vec<usize>)>
Expand description

Perform a QR decomposition on the Psi matrix

Normalizes each row of the matrix to sum to 1 before decomposition. Returns the R matrix from QR decomposition and the column permutation vector.

§Arguments

  • psi - The Psi matrix to decompose

§Returns

  • Tuple containing the R matrix (as [faer::Mat]) and permutation vector (as Vec)
  • Error if any row in the matrix sums to zero