Struct matrix::format::banded::Banded [] [src]

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

A banded matrix.

Fields

The number of rows.

The number of columns.

The number of superdiagonals.

The number of subdiagonals.

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.

Methods

impl<T: Element> Banded<T>
[src]

Create a zero matrix.

Return the number of diagonals.

Return a sparse iterator.

Trait Implementations

impl<'l, T: Element> From<&'l Diagonal<T>> for Banded<T>
[src]

Performs the conversion.

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

Performs the conversion.

impl<T: Element> Transpose for Banded<T>
[src]

Perform the transpose.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

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

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

This method tests for !=.

impl<T: Element> Size for Banded<T>
[src]

Return the number of rows.

Return the number of columns.

Return the number of rows and columns.

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

The element type.

Count nonzero elements.

Create a zero matrix.