Struct matrix::Band [] [src]

pub struct Band<T: Element> {
    pub rows: usize,
    pub columns: usize,
    pub superdiagonals: usize,
    pub subdiagonals: usize,
    pub data: Vec<T>,
}

A band matrix.

The storage is suitable for matrices with a small number of superdiagonals and/or subdiagonals relative to the smallest dimension. Data are stored in the format adopted by LAPACK.

Fields

rows: usize

The number of rows.

columns: usize

The number of columns.

superdiagonals: usize

The number of superdiagonals.

subdiagonals: usize

The number of subdiagonals.

data: Vec<T>

The values of the diagonal elements stored as a (superdiagonals + 1 + subdiagonals) × columns matrix such that the first row corresponds to the uppermost superdiagonal whereas the last row corresponds to the lowest supdiagonal.

Trait Implementations

impl<T: PartialEq + Element> PartialEq for Band<T>
[src]

fn eq(&self, __arg_0: &Band<T>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Band<T>) -> bool

This method tests for !=.

impl<T: Debug + Element> Debug for Band<T>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<T: Clone + Element> Clone for Band<T>
[src]

fn clone(&self) -> Band<T>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<T: Element> Matrix for Band<T>
[src]

type Element = T

The element type.

fn rows(&self) -> usize

Return the number of rows.

fn columns(&self) -> usize

Return the number of columns.

impl<T: Element> Sparse for Band<T>
[src]

fn nonzeros(&self) -> usize

Return the number of nonzero elements.

impl<T: Element> From<Diagonal<T>> for Band<T>
[src]

fn from(diagonal: Diagonal<T>) -> Band<T>

Performs the conversion.