[−][src]Struct flag_algebra::Ineq
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]
N: Clone + Num,
F: Flag,
pub fn opposite(self) -> Self where
N: Neg<Output = N>,
[src]
N: Neg<Output = N>,
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]
N: SubAssign,
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]
N: Debug + Neg<Output = N> + Clone + FromPrimitive + ScalarOperand + Display,
impl<N, F> Ineq<N, F> where
N: Num + Copy + Send + Sync + Default + FromPrimitive + AddAssign + Sum,
F: Flag,
[src]
N: Num + Copy + Send + Sync + Default + FromPrimitive + AddAssign + Sum,
F: Flag,
pub fn untype(&self) -> Self
[src]
If self is "f
≥ x
", return the projection "〚f〛 ≥ x
".
pub fn multiply_by_all(self, outbasis: Basis<F>) -> Self where
N: Neg<Output = N>,
[src]
N: Neg<Output = N>,
If self is "f
≥ x
", 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]
N: Neg<Output = N>,
If self is "f
≥ x
", 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]
N: Display,
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,
F: Unpin,
N: Unpin,
impl<N, F> !UnwindSafe for Ineq<N, F>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub unsafe fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,