Struct osqp::CscMatrix [] [src]

pub struct CscMatrix<'a> {
    pub nrows: usize,
    pub ncols: usize,
    pub indptr: Cow<'a, [usize]>,
    pub indices: Cow<'a, [usize]>,
    pub data: Cow<'a, [f64]>,
}

A matrix in Compressed Sparse Column format.

Fields

The number of rows in the matrix.

The number of columns in the matrix.

The CSC column pointer array.

It contains the offsets into the index and data arrays of the entries in each column.

The CSC index array.

It contains the row index of each non-zero entry.

The CSC data array.

It contains the values of each non-zero entry.

Trait Implementations

impl<'a> Clone for CscMatrix<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for CscMatrix<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for CscMatrix<'a>
[src]

[src]

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

[src]

This method tests for !=.

impl<'a, 'b: 'a> From<&'a CscMatrix<'b>> for CscMatrix<'a>
[src]

[src]

Performs the conversion.

impl<'a, I: 'a, J: 'a> From<I> for CscMatrix<'static> where
    I: IntoIterator<Item = J>,
    J: IntoIterator<Item = &'a f64>, 
[src]

[src]

Performs the conversion.