Struct lax::tridiagonal::Tridiagonal
source · pub struct Tridiagonal<A: Scalar> {
pub l: MatrixLayout,
pub dl: Vec<A>,
pub d: Vec<A>,
pub du: Vec<A>,
}
Expand description
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§
source§impl<A: Clone + Scalar> Clone for Tridiagonal<A>
impl<A: Clone + Scalar> Clone for Tridiagonal<A>
source§fn clone(&self) -> Tridiagonal<A>
fn clone(&self) -> Tridiagonal<A>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<A: PartialEq + Scalar> PartialEq for Tridiagonal<A>
impl<A: PartialEq + Scalar> PartialEq for Tridiagonal<A>
impl<A: Eq + Scalar> Eq for Tridiagonal<A>
impl<A: Scalar> StructuralPartialEq for Tridiagonal<A>
Auto Trait Implementations§
impl<A> Freeze for Tridiagonal<A>
impl<A> RefUnwindSafe for Tridiagonal<A>where
A: RefUnwindSafe,
impl<A> Send for Tridiagonal<A>where
A: Send,
impl<A> Sync for Tridiagonal<A>where
A: Sync,
impl<A> Unpin for Tridiagonal<A>where
A: Unpin,
impl<A> UnwindSafe for Tridiagonal<A>where
A: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)