[][src]Trait mathru::algebra::linear::matrix::Inverse

pub trait Inverse<T> {
    fn inv(&self) -> Result<Matrix<T>, ()>;
}

Required methods

fn inv(&self) -> Result<Matrix<T>, ()>

Inverse Matrix

Example

use mathru::algebra::linear::{matrix::Inverse, Matrix};

let a: Matrix<f64> = Matrix::new(2, 2, vec![1.0, 0.0, 3.0, -7.0]);
let b_inv: Matrix<f64> = a.inv().unwrap();
Loading content...

Implementors

impl<T> Inverse<T> for Matrix<T> where
    T: Field + Scalar
[src]

fn inv(&self) -> Result<Matrix<T>, ()>[src]

Inverse Matrix

Example

use mathru::algebra::linear::{matrix::*, Matrix};

let a: Matrix<f64> = Matrix::new(2, 2, vec![1.0, 0.0, 3.0, -7.0]);
let b_inv: Matrix<f64> = a.inv().unwrap();

impl<T> Inverse<T> for LUDec<T> where
    T: Field + Scalar
[src]

fn inv(&self) -> Result<Matrix<T>, ()>[src]

Inverse Matrix

PAX = LUX = I X = (PA)^-1 X = A^-1P^-1 XP = A^-1

Example

use mathru::algebra::linear::{matrix::Inverse, Matrix};

let a: Matrix<f64> = Matrix::new(2, 2, vec![1.0, 0.0, 3.0, -7.0]);
let b_inv: Matrix<f64> = a.inv().unwrap();
Loading content...