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
nrows: usize
The number of rows in the matrix.
ncols: usize
The number of columns in the matrix.
indptr: Cow<'a, [usize]>
The CSC column pointer array.
It contains the offsets into the index and data arrays of the entries in each column.
indices: Cow<'a, [usize]>
The CSC index array.
It contains the row index of each non-zero entry.
data: Cow<'a, [f64]>
The CSC data array.
It contains the values of each non-zero entry.
Trait Implementations
impl<'a> Clone for CscMatrix<'a>
[src]
fn clone(&self) -> CscMatrix<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for CscMatrix<'a>
[src]
impl<'a> PartialEq for CscMatrix<'a>
[src]
fn eq(&self, __arg_0: &CscMatrix<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CscMatrix<'a>) -> bool
[src]
This method tests for !=
.
impl<'a, 'b: 'a> From<&'a CscMatrix<'b>> for CscMatrix<'a>
[src]
impl<'a, I: 'a, J: 'a> From<I> for CscMatrix<'static> where
I: IntoIterator<Item = J>,
J: IntoIterator<Item = &'a f64>,
[src]
I: IntoIterator<Item = J>,
J: IntoIterator<Item = &'a f64>,