pub enum ProxFnType {
L1Norm,
L2NormSquared,
NonNegativeOrtHant,
L2Ball {
radius: f64,
},
}Expand description
Type of function for proximal operator.
Variants§
L1Norm
L1 norm: f(x) = ||x||_1 → soft thresholding.
L2NormSquared
Squared L2 norm: f(x) = ||x||_2^2 → shrinkage.
NonNegativeOrtHant
Indicator of {x : x ≥ 0}: f(x) = 0 if x≥0, ∞ else → projection.
L2Ball
Indicator of L2 ball of radius r: ||x||_2 ≤ r.
Trait Implementations§
Source§impl Clone for ProxFnType
impl Clone for ProxFnType
Source§fn clone(&self) -> ProxFnType
fn clone(&self) -> ProxFnType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProxFnType
impl Debug for ProxFnType
Source§impl PartialEq for ProxFnType
impl PartialEq for ProxFnType
impl StructuralPartialEq for ProxFnType
Auto Trait Implementations§
impl Freeze for ProxFnType
impl RefUnwindSafe for ProxFnType
impl Send for ProxFnType
impl Sync for ProxFnType
impl Unpin for ProxFnType
impl UnsafeUnpin for ProxFnType
impl UnwindSafe for ProxFnType
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