Struct lax::Tridiagonal[][src]

pub struct Tridiagonal<A: Scalar> {
    pub l: MatrixLayout,
    pub dl: Vec<A>,
    pub d: Vec<A>,
    pub du: Vec<A>,
}

Represents a tridiagonal matrix as 3 one-dimensional vectors.

[d0, u1,  0,   ...,       0,
 l1, d1, u2,            ...,
  0, l2, d2,
 ...           ...,  u{n-1},
  0,  ...,  l{n-1},  d{n-1},]

Fields

l: MatrixLayout

layout of raw matrix

dl: Vec<A>

(n-1) sub-diagonal elements of matrix.

d: Vec<A>

(n) diagonal elements of matrix.

du: Vec<A>

(n-1) super-diagonal elements of matrix.

Trait Implementations

impl<A: Clone + Scalar> Clone for Tridiagonal<A>[src]

impl<A: Scalar> Index<[i32; 2]> for Tridiagonal<A>[src]

type Output = A

The returned type after indexing.

impl<A: Scalar> Index<(i32, i32)> for Tridiagonal<A>[src]

type Output = A

The returned type after indexing.

impl<A: Scalar> IndexMut<[i32; 2]> for Tridiagonal<A>[src]

impl<A: Scalar> IndexMut<(i32, i32)> for Tridiagonal<A>[src]

impl<A: PartialEq + Scalar> PartialEq<Tridiagonal<A>> for Tridiagonal<A>[src]

impl<A: Scalar> StructuralPartialEq for Tridiagonal<A>[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for Tridiagonal<A> where
    A: RefUnwindSafe
[src]

impl<A> Send for Tridiagonal<A> where
    A: Send
[src]

impl<A> Sync for Tridiagonal<A> where
    A: Sync
[src]

impl<A> Unpin for Tridiagonal<A> where
    A: Unpin
[src]

impl<A> UnwindSafe for Tridiagonal<A> where
    A: UnwindSafe
[src]

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