pub enum SparsityRequest<'a> {
Structure {
irow: &'a mut [i32],
jcol: &'a mut [i32],
},
Values {
values: &'a mut [f64],
},
}Expand description
Mode discriminator for the structure / values calls of
TNLP::eval_jac_g and TNLP::eval_h. Replaces upstream’s
iRow != NULL heuristic.
Variants§
Structure
First call: fill irow and jcol with the structure (the
numbering style is whatever was returned in
NlpInfo::index_style). The values array is absent.
Values
Subsequent calls: fill values with the entries of the matrix
at the current x (and, for the Hessian, lambda,
obj_factor).
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for SparsityRequest<'a>
impl<'a> Freeze for SparsityRequest<'a>
impl<'a> RefUnwindSafe for SparsityRequest<'a>
impl<'a> Send for SparsityRequest<'a>
impl<'a> Sync for SparsityRequest<'a>
impl<'a> Unpin for SparsityRequest<'a>
impl<'a> UnsafeUnpin for SparsityRequest<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> Imply<T> for U
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more