pub struct ConvexFunction {
pub domain: ConvexSet,
pub kind: FunctionKind,
}Expand description
A convex function with an explicit domain.
Fields§
§domain: ConvexSetDomain over which the function is defined (and finite).
kind: FunctionKindFunctional form.
Implementations§
Source§impl ConvexFunction
impl ConvexFunction
Sourcepub fn new(domain: ConvexSet, kind: FunctionKind) -> Self
pub fn new(domain: ConvexSet, kind: FunctionKind) -> Self
Construct a new convex function.
Trait Implementations§
Source§impl Clone for ConvexFunction
impl Clone for ConvexFunction
Source§fn clone(&self) -> ConvexFunction
fn clone(&self) -> ConvexFunction
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 moreAuto 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