pub struct TropicalLine {
pub coefficients: (f64, f64, f64),
}Expand description
A tropical line in ℝ² defined by the tropical polynomial a ⊗ x ⊕ b ⊗ y ⊕ c.
Classically this is min(a + x, b + y, c), whose non-smooth locus is a
three-ray star graph (a tropical line).
Fields§
§coefficients: (f64, f64, f64)Coefficients (a, b, c) in min(a+x, b+y, c).
Trait Implementations§
Source§impl Clone for TropicalLine
impl Clone for TropicalLine
Source§fn clone(&self) -> TropicalLine
fn clone(&self) -> TropicalLine
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 TropicalLine
impl RefUnwindSafe for TropicalLine
impl Send for TropicalLine
impl Sync for TropicalLine
impl Unpin for TropicalLine
impl UnsafeUnpin for TropicalLine
impl UnwindSafe for TropicalLine
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