[][src]Struct aljabar::LU

pub struct LU<T, const N: usize>(_, _);

The result of LU factorizing a square matrix with partial-pivoting.

Implementations

impl<T, const N: usize> LU<T, { N }> where
    T: Clone + PartialEq + One + Zero + Product + Neg<Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + Div<T, Output = T>, 
[src]

pub fn p(&self) -> &Permutation<{ N }>[src]

Returns the permutation sequence of the factorization.

pub fn solve(&self, b: Vector<T, { N }>) -> Vector<T, { N }>[src]

Solves the linear equation self * x = b and returns x.

pub fn determinant(&self) -> T[src]

Returns the determinant of the matrix.

pub fn invert(self) -> Matrix<T, { N }, { N }>[src]

Returns the inverse of the matrix, which is certain to exist.

Trait Implementations

impl<T: Clone, const N: usize> Clone for LU<T, N>[src]

impl<T: Copy, const N: usize> Copy for LU<T, N>[src]

impl<T: Debug, const N: usize> Debug for LU<T, N>[src]

impl<T, const N: usize> Index<(usize, usize)> for LU<T, { N }>[src]

type Output = T

The returned type after indexing.

Auto Trait Implementations

impl<T, const N: usize> RefUnwindSafe for LU<T, N> where
    T: RefUnwindSafe

impl<T, const N: usize> Send for LU<T, N> where
    T: Send

impl<T, const N: usize> Sync for LU<T, N> where
    T: Sync

impl<T, const N: usize> Unpin for LU<T, N> where
    T: Unpin

impl<T, const N: usize> UnwindSafe for LU<T, N> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,