Struct osqp_sys::linsys_solver [−][src]
#[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, settings: *const OSQPSettings) -> osqp_int>, pub free: Option<unsafe extern "C" fn(self_: *mut LinSysSolver)>, pub update_matrices: Option<unsafe extern "C" fn(self_: *mut LinSysSolver, P: *const csc, A: *const csc, settings: *const OSQPSettings) -> osqp_int>, pub update_rho_vec: Option<unsafe extern "C" fn(s: *mut LinSysSolver, rho_vec: *const osqp_float, m: osqp_int) -> 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 (see type.h)
solve: Option<unsafe extern "C" fn(self_: *mut LinSysSolver, b: *mut osqp_float, settings: *const OSQPSettings) -> osqp_int>
free: Option<unsafe extern "C" fn(self_: *mut LinSysSolver)>
< Free linear system solver
update_matrices: Option<unsafe extern "C" fn(self_: *mut LinSysSolver, P: *const csc, A: *const csc, settings: *const OSQPSettings) -> osqp_int>
update_rho_vec: Option<unsafe extern "C" fn(s: *mut LinSysSolver, rho_vec: *const osqp_float, m: osqp_int) -> osqp_int>
nthreads: osqp_int
< Number of threads active
Auto Trait Implementations
impl Send for linsys_solver
impl Send for linsys_solver
impl Sync for linsys_solver
impl Sync for linsys_solver