pub struct SolverFactory;Expand description
Factory for creating solver instances
Implementations§
Source§impl SolverFactory
impl SolverFactory
Sourcepub fn gradient_descent() -> Box<dyn OptimizationSolver<Config = GradientDescentConfig, Result = GradientDescentResult>>
pub fn gradient_descent() -> Box<dyn OptimizationSolver<Config = GradientDescentConfig, Result = GradientDescentResult>>
Create a gradient descent solver
Sourcepub fn coordinate_descent() -> Box<dyn OptimizationSolver<Config = CoordinateDescentConfig, Result = CoordinateDescentResult>>
pub fn coordinate_descent() -> Box<dyn OptimizationSolver<Config = CoordinateDescentConfig, Result = CoordinateDescentResult>>
Create a coordinate descent solver
Sourcepub fn proximal_gradient() -> Box<dyn OptimizationSolver<Config = ProximalGradientConfig, Result = ProximalGradientResult>>
pub fn proximal_gradient() -> Box<dyn OptimizationSolver<Config = ProximalGradientConfig, Result = ProximalGradientResult>>
Create a proximal gradient solver
Auto Trait Implementations§
impl Freeze for SolverFactory
impl RefUnwindSafe for SolverFactory
impl Send for SolverFactory
impl Sync for SolverFactory
impl Unpin for SolverFactory
impl UnwindSafe for SolverFactory
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
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