[][src]Struct flag_algebra::Ineq

pub struct Ineq<N, F> {
    pub meta: IneqMeta<N, F>,
    pub data: Vec<IneqData<N>>,
}

A set of bounds on elements of a flag algebra.

This correpond to a set of inequalities constructed in a similar way.

Fields

meta: IneqMeta<N, F>

Common information about the set of inequalities.

data: Vec<IneqData<N>>

List of data of the inequalities in the set.

Implementations

impl<N, F> Ineq<N, F> where
    N: Clone + Num,
    F: Flag
[src]

pub fn opposite(self) -> Self where
    N: Neg<Output = N>, 
[src]

If self is "f ≥ x", returns "f ≤ x".

pub fn equality(self) -> Self[src]

If self is "f ≥ x", returns "f = x".

pub fn relaxed(self, eps: N) -> Self where
    N: SubAssign
[src]

If self is "f ≥ x", returns "f ≥ x - eps".

pub fn lhs(&self, i: usize) -> QFlag<N, F>[src]

Return the flag member of the ith inequality

pub fn check(&self) where
    N: Debug + Neg<Output = N> + Clone + FromPrimitive + ScalarOperand + Display
[src]

impl<N, F> Ineq<N, F> where
    N: Num + Copy + Send + Sync + Default + FromPrimitive + AddAssign + Sum,
    F: Flag
[src]

pub fn untype(&self) -> Self[src]

If self is "fx", return the projection "〚f〛 ≥ x".

pub fn multiply_by_all(self, outbasis: Basis<F>) -> Self where
    N: Neg<Output = N>, 
[src]

If self is "fx", return the set of inequalities "f*g ≥ x.g", where g is chosen such that f*g is a vector of outbasis.

pub fn multiply_and_unlabel(self, outbasis: Basis<F>) -> Self where
    N: Neg<Output = N>, 
[src]

If self is "fx", return the set of inequalities "〚f*g〛 ≥ x.〚g〛", where g is chosen such that 〚f*g〛 is a vector of outbasis.

Trait Implementations

impl<N: Clone, F: Clone> Clone for Ineq<N, F>[src]

impl<N: Debug, F: Debug> Debug for Ineq<N, F>[src]

impl<N, F> Display for Ineq<N, F> where
    N: Display
[src]

Auto Trait Implementations

impl<N, F> !RefUnwindSafe for Ineq<N, F>

impl<N, F> !Send for Ineq<N, F>

impl<N, F> !Sync for Ineq<N, F>

impl<N, F> Unpin for Ineq<N, F> where
    F: Unpin,
    N: Unpin

impl<N, F> !UnwindSafe for Ineq<N, F>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,