Struct matrix::Triangular [] [src]

pub struct Triangular<T: Element> {
    pub size: usize,
    pub format: TriangularFormat,
    pub data: Vec<T>,
}

A triangular matrix.

Apart from triangular matrices, the storage is suitable for symmetric and Hermitian matrices. Data are stored in the format adopted by LAPACK.

Fields

size: usize

The number of rows or columns.

format: TriangularFormat

The storage format.

data: Vec<T>

The data stored in the column-major order.

Trait Implementations

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

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

Formats the value using the given formatter.

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

fn clone(&self) -> Triangular<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 Triangular<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> Square for Triangular<T>
[src]

fn size(&self) -> usize

Return the number of rows or columns.

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

fn nonzeros(&self) -> usize

Return the number of nonzero elements.