Struct ggez::graphics::na::SymmetricTridiagonal
[−]
[src]
pub struct SymmetricTridiagonal<N, D> where
D: DimSub<U1>,
N: Real,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, <D as DimSub<U1>>::Output, U1>, { /* fields omitted */ }
Tridiagonalization of a symmetric matrix.
Methods
impl<N, D> SymmetricTridiagonal<N, D> where
D: DimSub<U1>,
N: Real,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, <D as DimSub<U1>>::Output, U1>,
[src]
D: DimSub<U1>,
N: Real,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, <D as DimSub<U1>>::Output, U1>,
fn new(
m: Matrix<N, D, D, <DefaultAllocator as Allocator<N, D, D>>::Buffer>
) -> SymmetricTridiagonal<N, D>
[src]
m: Matrix<N, D, D, <DefaultAllocator as Allocator<N, D, D>>::Buffer>
) -> SymmetricTridiagonal<N, D>
Computes the tridiagonalization of the symmetric matrix m
.
Only the lower-triangular part (including the diagonal) of m
is read.
fn unpack(
self
) -> (Matrix<N, D, D, <DefaultAllocator as Allocator<N, D, D>>::Buffer>, Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>, Matrix<N, <D as DimSub<U1>>::Output, U1, <DefaultAllocator as Allocator<N, <D as DimSub<U1>>::Output, U1>>::Buffer>) where
DefaultAllocator: Allocator<N, D, U1>,
[src]
self
) -> (Matrix<N, D, D, <DefaultAllocator as Allocator<N, D, D>>::Buffer>, Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>, Matrix<N, <D as DimSub<U1>>::Output, U1, <DefaultAllocator as Allocator<N, <D as DimSub<U1>>::Output, U1>>::Buffer>) where
DefaultAllocator: Allocator<N, D, U1>,
Retrieve the orthogonal transformation, diagonal, and off diagonal elements of this decomposition.
fn unpack_tridiagonal(
self
) -> (Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>, Matrix<N, <D as DimSub<U1>>::Output, U1, <DefaultAllocator as Allocator<N, <D as DimSub<U1>>::Output, U1>>::Buffer>) where
DefaultAllocator: Allocator<N, D, U1>,
[src]
self
) -> (Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer>, Matrix<N, <D as DimSub<U1>>::Output, U1, <DefaultAllocator as Allocator<N, <D as DimSub<U1>>::Output, U1>>::Buffer>) where
DefaultAllocator: Allocator<N, D, U1>,
Retrieve the diagonal, and off diagonal elements of this decomposition.
fn diagonal(
&self
) -> Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer> where
DefaultAllocator: Allocator<N, D, U1>,
[src]
&self
) -> Matrix<N, D, U1, <DefaultAllocator as Allocator<N, D, U1>>::Buffer> where
DefaultAllocator: Allocator<N, D, U1>,
The diagonal components of this decomposition.
fn off_diagonal(
&self
) -> &Matrix<N, <D as DimSub<U1>>::Output, U1, <DefaultAllocator as Allocator<N, <D as DimSub<U1>>::Output, U1>>::Buffer> where
DefaultAllocator: Allocator<N, D, U1>,
[src]
&self
) -> &Matrix<N, <D as DimSub<U1>>::Output, U1, <DefaultAllocator as Allocator<N, <D as DimSub<U1>>::Output, U1>>::Buffer> where
DefaultAllocator: Allocator<N, D, U1>,
The off-diagonal components of this decomposition.
fn q(&self) -> Matrix<N, D, D, <DefaultAllocator as Allocator<N, D, D>>::Buffer>
[src]
Computes the orthogonal matrix Q
of this decomposition.
fn recompose(
self
) -> Matrix<N, D, D, <DefaultAllocator as Allocator<N, D, D>>::Buffer>
[src]
self
) -> Matrix<N, D, D, <DefaultAllocator as Allocator<N, D, D>>::Buffer>
Recomputes the original symmetric matrix.
Trait Implementations
impl<N, D> Copy for SymmetricTridiagonal<N, D> where
D: DimSub<U1>,
N: Real,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, <D as DimSub<U1>>::Output, U1>,
Matrix<N, D, D, <DefaultAllocator as Allocator<N, D, D>>::Buffer>: Copy,
Matrix<N, <D as DimSub<U1>>::Output, U1, <DefaultAllocator as Allocator<N, <D as DimSub<U1>>::Output, U1>>::Buffer>: Copy,
[src]
D: DimSub<U1>,
N: Real,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, <D as DimSub<U1>>::Output, U1>,
Matrix<N, D, D, <DefaultAllocator as Allocator<N, D, D>>::Buffer>: Copy,
Matrix<N, <D as DimSub<U1>>::Output, U1, <DefaultAllocator as Allocator<N, <D as DimSub<U1>>::Output, U1>>::Buffer>: Copy,
impl<N, D> Clone for SymmetricTridiagonal<N, D> where
D: DimSub<U1> + Clone,
N: Clone + Real,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, <D as DimSub<U1>>::Output, U1>,
[src]
D: DimSub<U1> + Clone,
N: Clone + Real,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, <D as DimSub<U1>>::Output, U1>,
fn clone(&self) -> SymmetricTridiagonal<N, D>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<N, D> Debug for SymmetricTridiagonal<N, D> where
D: DimSub<U1> + Debug,
N: Debug + Real,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, <D as DimSub<U1>>::Output, U1>,
[src]
D: DimSub<U1> + Debug,
N: Debug + Real,
DefaultAllocator: Allocator<N, D, D>,
DefaultAllocator: Allocator<N, <D as DimSub<U1>>::Output, U1>,