[][src]Struct osqp_sys::linsys_solver

#[repr(C)]pub struct linsys_solver {
    pub type_: linsys_solver_type,
    pub solve: Option<unsafe extern "C" fn(self_: *mut LinSysSolver, b: *mut osqp_float) -> osqp_int>,
    pub free: Option<unsafe extern "C" fn(self_: *mut LinSysSolver)>,
    pub update_matrices: Option<unsafe extern "C" fn(s: *mut LinSysSolver, P: *const csc, A: *const csc) -> osqp_int>,
    pub update_rho_vec: Option<unsafe extern "C" fn(s: *mut LinSysSolver, rho_vec: *const osqp_float) -> osqp_int>,
    pub nthreads: osqp_int,
}

Define linsys_solver prototype structure

NB: The details are defined when the linear solver is initialized depending on the choice

Fields

type_: linsys_solver_type

< linear system solver type functions

solve: Option<unsafe extern "C" fn(self_: *mut LinSysSolver, b: *mut osqp_float) -> osqp_int>free: Option<unsafe extern "C" fn(self_: *mut LinSysSolver)>

< free linear system solver (only in desktop version)

update_matrices: Option<unsafe extern "C" fn(s: *mut LinSysSolver, P: *const csc, A: *const csc) -> osqp_int>update_rho_vec: Option<unsafe extern "C" fn(s: *mut LinSysSolver, rho_vec: *const osqp_float) -> osqp_int>nthreads: osqp_int

< number of threads active

Auto Trait Implementations

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.