MCPcopy Create free account
hub / github.com/Axect/Peroxide / extract

Method extract

src/complex/matrix.rs:1814–1821  ·  view source on GitHub ↗

Extract PQLU # Usage ```rust extern crate peroxide; use peroxide::fuga::*; let a = cmatrix(vec![C64::new(1f64, 1f64), C64::new(2f64, 2f64), C64::new(3f64, 3f64), C64::new(4f64, 4f64)], 2, 2, Row ); let pqlu = a.lu(); let (p, q, l, u) = pqlu.extract(); // p, q are permutations // l, u are matrices println!("{}", l); // lower triangular println!("{}", u); // upper triangular ```

(&self)

Source from the content-addressed store, hash-verified

1812 /// println!("{}", u); // upper triangular
1813 /// ```
1814 pub fn extract(&self) -> (Vec<usize>, Vec<usize>, ComplexMatrix, ComplexMatrix) {
1815 (
1816 self.p.clone(),
1817 self.q.clone(),
1818 self.l.clone(),
1819 self.u.clone(),
1820 )
1821 }
1822
1823 pub fn det(&self) -> C64 {
1824 // sgn of perms

Callers 3

invMethod · 0.45
solveMethod · 0.45
solve_matMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected