pub struct BandedMatrix {
pub rows: usize,
pub cols: usize,
pub kl: usize,
pub ku: usize,
pub band: Vec<Vec<f64>>,
}Expand description
A banded matrix stored as an array of diagonals. Diagonals are indexed from -(rows-1) to +(cols-1); offset = k means superdiagonal k.
Fields§
§rows: usizeNumber of rows.
cols: usizeNumber of columns.
kl: usizeLower bandwidth (number of sub-diagonals).
ku: usizeUpper bandwidth (number of super-diagonals).
band: Vec<Vec<f64>>Storage: (kl + ku + 1) × cols, band[k][j] = A[j - ku + k][j].
Implementations§
Trait Implementations§
Source§impl Clone for BandedMatrix
impl Clone for BandedMatrix
Source§fn clone(&self) -> BandedMatrix
fn clone(&self) -> BandedMatrix
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for BandedMatrix
impl RefUnwindSafe for BandedMatrix
impl Send for BandedMatrix
impl Sync for BandedMatrix
impl Unpin for BandedMatrix
impl UnsafeUnpin for BandedMatrix
impl UnwindSafe for BandedMatrix
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