pub enum Task {
Minimize {
gradient: bool,
},
Solve {
residuals: usize,
},
Linear {
equations: usize,
adjoint: bool,
},
}Expand description
What a front is for, which decides the methods that suit it.
Variants§
Minimize
minimize, for an objective with or without a gradient.
Solve
solve, for a mapping that gives residuals values.
Linear
solve_linear, for equations equations, with or without products with the matrix’s transpose.
Implementations§
Source§impl Task
impl Task
Sourcepub fn least_squares(&self, variables: usize) -> bool
pub fn least_squares(&self, variables: usize) -> bool
Whether solve_linear solves least squares for variables unknowns: for a system that isn’t square, or whose matrix gives products with its transpose.
Trait Implementations§
impl Copy for Task
impl Eq for Task
impl StructuralPartialEq for Task
Auto Trait Implementations§
impl Forget for Task
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnsafeUnpin for Task
impl UnwindSafe for Task
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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