Struct lnkit::prelude::linalg::UDU[][src]

pub struct UDU<T, D> where
    T: RealField,
    D: Dim,
    DefaultAllocator: Allocator<T, D, Const<1_usize>>,
    DefaultAllocator: Allocator<T, D, D>, 
{ pub u: Matrix<T, D, D, <DefaultAllocator as Allocator<T, D, D>>::Buffer>, pub d: Matrix<T, D, Const<1_usize>, <DefaultAllocator as Allocator<T, D, Const<1_usize>>>::Buffer>, }

UDU factorization.

Fields

u: Matrix<T, D, D, <DefaultAllocator as Allocator<T, D, D>>::Buffer>

The upper triangular matrix resulting from the factorization

d: Matrix<T, D, Const<1_usize>, <DefaultAllocator as Allocator<T, D, Const<1_usize>>>::Buffer>

The diagonal matrix resulting from the factorization

Implementations

impl<T, D> UDU<T, D> where
    T: RealField,
    D: Dim,
    DefaultAllocator: Allocator<T, D, Const<1_usize>>,
    DefaultAllocator: Allocator<T, D, D>, 
[src]

pub fn new(
    p: Matrix<T, D, D, <DefaultAllocator as Allocator<T, D, D>>::Buffer>
) -> Option<UDU<T, D>>
[src]

Computes the UDU^T factorization.

The input matrix p is assumed to be symmetric and this decomposition will only read the upper-triangular part of p.

Ref.: “Optimal control and estimation-Dover Publications”, Robert F. Stengel, (1994) page 360

pub fn d_matrix(
    &self
) -> Matrix<T, D, D, <DefaultAllocator as Allocator<T, D, D>>::Buffer>
[src]

Returns the diagonal elements as a matrix

Trait Implementations

impl<T, D> Clone for UDU<T, D> where
    T: Clone + RealField,
    D: Clone + Dim,
    DefaultAllocator: Allocator<T, D, Const<1_usize>>,
    DefaultAllocator: Allocator<T, D, D>, 
[src]

impl<T, D> Copy for UDU<T, D> where
    T: RealField,
    D: Dim,
    DefaultAllocator: Allocator<T, D, Const<1_usize>>,
    DefaultAllocator: Allocator<T, D, D>,
    Matrix<T, D, Const<1_usize>, <DefaultAllocator as Allocator<T, D, Const<1_usize>>>::Buffer>: Copy,
    Matrix<T, D, D, <DefaultAllocator as Allocator<T, D, D>>::Buffer>: Copy
[src]

impl<T, D> Debug for UDU<T, D> where
    T: Debug + RealField,
    D: Debug + Dim,
    DefaultAllocator: Allocator<T, D, Const<1_usize>>,
    DefaultAllocator: Allocator<T, D, D>, 
[src]

impl<'de, T, D> Deserialize<'de> for UDU<T, D> where
    T: RealField,
    D: Dim,
    DefaultAllocator: Allocator<T, D, Const<1_usize>>,
    DefaultAllocator: Allocator<T, D, D>,
    Matrix<T, D, Const<1_usize>, <DefaultAllocator as Allocator<T, D, Const<1_usize>>>::Buffer>: Deserialize<'de>,
    Matrix<T, D, D, <DefaultAllocator as Allocator<T, D, D>>::Buffer>: Deserialize<'de>, 
[src]

impl<T, D> Serialize for UDU<T, D> where
    T: RealField,
    D: Dim,
    DefaultAllocator: Allocator<T, D, Const<1_usize>>,
    DefaultAllocator: Allocator<T, D, D>,
    Matrix<T, D, Const<1_usize>, <DefaultAllocator as Allocator<T, D, Const<1_usize>>>::Buffer>: Serialize,
    Matrix<T, D, D, <DefaultAllocator as Allocator<T, D, D>>::Buffer>: Serialize
[src]

Auto Trait Implementations

impl<T, D> !RefUnwindSafe for UDU<T, D>

impl<T, D> !Send for UDU<T, D>

impl<T, D> !Sync for UDU<T, D>

impl<T, D> !Unpin for UDU<T, D>

impl<T, D> !UnwindSafe for UDU<T, D>

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, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

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

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

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

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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>,