Function peroxide::complex::matrix::complex_inv_l

source ·
pub fn complex_inv_l(l: ComplexMatrix) -> ComplexMatrix
Expand description

Inverse of Lower matrix

§Examples

#[macro_use]
extern crate peroxide;
use peroxide::fuga::*;
use peroxide::complex::matrix::*;

fn main() {
   let a = ml_cmatrix("2.0+2.0i 0.0+0.0i;
                              2.0+2.0i 1.0+1.0i");
   let b = cmatrix(vec![C64::new(2f64, 2f64),
                               C64::new(0f64, 0f64),
                               C64::new(-2f64, -2f64),
                               C64::new(1f64, 1f64)],
                           2, 2, Row
   );
   assert_eq!(complex_inv_l(a), b);
}