pub struct ConvexFunction {
pub domain: String,
pub is_proper: bool,
pub is_lsc: bool,
}Expand description
A convex function with domain and lower-semicontinuity properties.
Fields§
§domain: StringDomain description (e.g., “R^n”, “[0,1]”).
is_proper: boolWhether the function is proper (not identically +∞, never -∞).
is_lsc: boolWhether the function is lower-semicontinuous (closed).
Implementations§
Source§impl ConvexFunction
impl ConvexFunction
Sourcepub fn new(domain: impl Into<String>, is_proper: bool, is_lsc: bool) -> Self
pub fn new(domain: impl Into<String>, is_proper: bool, is_lsc: bool) -> Self
Create a new ConvexFunction.
Sourcepub fn subdifferential(&self) -> String
pub fn subdifferential(&self) -> String
Returns a description of the subdifferential of this function.
Sourcepub fn conjugate_fn(&self) -> String
pub fn conjugate_fn(&self) -> String
Returns a description of the conjugate (Fenchel dual) function.
Auto Trait Implementations§
impl Freeze for ConvexFunction
impl RefUnwindSafe for ConvexFunction
impl Send for ConvexFunction
impl Sync for ConvexFunction
impl Unpin for ConvexFunction
impl UnsafeUnpin for ConvexFunction
impl UnwindSafe for ConvexFunction
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