[][src]Struct osqp_sys::csc

#[repr(C)]pub struct csc {
    pub nzmax: osqp_int,
    pub m: osqp_int,
    pub n: osqp_int,
    pub p: *mut osqp_int,
    pub i: *mut osqp_int,
    pub x: *mut osqp_float,
    pub nz: osqp_int,
}

Matrix in compressed-column form. The structure is used internally to store matrices in the triplet form as well, but the API requires that the matrices are in the CSC format.

Fields

nzmax: osqp_int

< maximum number of entries

m: osqp_int

< number of rows

n: osqp_int

< number of columns

p: *mut osqp_int

< column pointers (size n+1); col indices (size nzmax) start from 0 when using triplet format (direct KKT matrix formation)

i: *mut osqp_int

< row indices, size nzmax starting from 0

x: *mut osqp_float

< numerical values, size nzmax

nz: osqp_int

< number of entries in triplet matrix, -1 for csc

Auto Trait Implementations

impl RefUnwindSafe for csc[src]

impl !Send for csc[src]

impl !Sync for csc[src]

impl Unpin for csc[src]

impl UnwindSafe for csc[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.