[−][src]Struct flag_algebra::QFlag
An element of a flag algebra.
Fields
basis: Basis<F>Basis of the space where the element lives. This corresponds to the size and type of the flags.
data: Array1<N>The vector of the element in the corresponding basis is (1/self.scale).self.data.
scale: u64Scaling factor of the vector.
expr: Expr<N, F>Expression recording how the vector was computed.
Implementations
impl<N, F> QFlag<N, F> where
N: Num + Clone + FromPrimitive,
F: Flag, [src]
N: Num + Clone + FromPrimitive,
F: Flag,
pub fn expand(&self, outbasis: Basis<F>) -> Self[src]
Projection to a basis of larger flag.
pub fn untype(&self) -> Self[src]
Unlabeling operator 〚.〛 to the flag algebra of completly unlabeled flags.
impl<N, F> QFlag<N, F>[src]
pub fn with_expr(self, expr: Expr<N, F>) -> Self[src]
Return the same element with modified pretty-print expression
pub fn named(self, name: String) -> Self[src]
Return the same element with modified pretty-print expression
pub fn no_scale(self) -> Self where
N: FromPrimitive + DivAssign<N> + ScalarOperand, [src]
N: FromPrimitive + DivAssign<N> + ScalarOperand,
pub fn map<G, M>(&self, g: G) -> QFlag<M, F> where
G: Fn(&N) -> M, [src]
G: Fn(&N) -> M,
impl<N, F> QFlag<N, F> where
N: Num + FromPrimitive + Clone + Display,
F: Flag, [src]
N: Num + FromPrimitive + Clone + Display,
F: Flag,
pub fn at_least(&self, x: N) -> Ineq<N, F>[src]
Return the inequality "self ≥ x".
pub fn at_most(&self, x: N) -> Ineq<N, F> where
N: Clone + Neg<Output = N>, [src]
N: Clone + Neg<Output = N>,
Return the inequality "self ≤ x".
pub fn non_negative(&self) -> Ineq<N, F> where
N: Num, [src]
N: Num,
Return the inequality "self ≥ 0".
pub fn equal(self, n: N) -> Ineq<N, F> where
N: Clone + Neg<Output = N>, [src]
N: Clone + Neg<Output = N>,
Return the equality "self = n".
Trait Implementations
impl<N, F, '_> Add<&'_ QFlag<N, F>> for QFlag<N, F> where
N: Clone + FromPrimitive + Num + ScalarOperand,
F: Flag, [src]
N: Clone + FromPrimitive + Num + ScalarOperand,
F: Flag,
type Output = Self
The resulting type after applying the + operator.
fn add(self, other: &Self) -> Self::Output[src]
impl<N, F> Add<QFlag<N, F>> for QFlag<N, F> where
N: Clone + Num + FromPrimitive + ScalarOperand,
F: Flag, [src]
N: Clone + Num + FromPrimitive + ScalarOperand,
F: Flag,
type Output = Self
The resulting type after applying the + operator.
fn add(self, other: Self) -> Self::Output[src]
impl<N: Clone, F: Clone> Clone for QFlag<N, F>[src]
impl<N: Debug, F: Debug> Debug for QFlag<N, F>[src]
impl<F, N> Html for QFlag<N, F> where
F: Flag + Draw,
N: Num + Clone + Display + FromPrimitive, [src]
F: Flag + Draw,
N: Num + Clone + Display + FromPrimitive,
const LATEX: bool[src]
fn print_html<W: Write>(&self, w: &mut W) -> Result<()>[src]
fn html(&self, name: &str) -> Result<()>[src]
impl<'a, N, F> Mul<&'a QFlag<N, F>> for &'a QFlag<N, F> where
N: Num + Clone + FromPrimitive,
F: Flag, [src]
N: Num + Clone + FromPrimitive,
F: Flag,
type Output = QFlag<N, F>
The resulting type after applying the * operator.
fn mul(self, other: Self) -> QFlag<N, F>[src]
impl<N, F> Mul<N> for QFlag<N, F> where
N: Num + ScalarOperand + Display,
F: Flag, [src]
N: Num + ScalarOperand + Display,
F: Flag,
type Output = Self
The resulting type after applying the * operator.
fn mul(self, rhs: N) -> Self::Output[src]
impl<N, F> Mul<QFlag<N, F>> for QFlag<N, F> where
N: Num + Clone + FromPrimitive,
F: Flag, [src]
N: Num + Clone + FromPrimitive,
F: Flag,
type Output = Self
The resulting type after applying the * operator.
fn mul(self, other: Self) -> Self[src]
impl<N, F> Neg for QFlag<N, F> where
N: Clone + Neg<Output = N>, [src]
N: Clone + Neg<Output = N>,
type Output = Self
The resulting type after applying the - operator.
fn neg(self) -> Self::Output[src]
impl<'a, N, F> Neg for &'a QFlag<N, F> where
N: Clone + Neg<Output = N>,
F: Clone, [src]
N: Clone + Neg<Output = N>,
F: Clone,
type Output = QFlag<N, F>
The resulting type after applying the - operator.
fn neg(self) -> Self::Output[src]
impl<N, F> PartialEq<QFlag<N, F>> for QFlag<N, F> where
N: Num + FromPrimitive + Clone,
F: Flag, [src]
N: Num + FromPrimitive + Clone,
F: Flag,
impl<'a, N, F> Sub<&'a QFlag<N, F>> for &'a QFlag<N, F> where
N: Clone + Num + FromPrimitive + ScalarOperand,
F: Flag, [src]
N: Clone + Num + FromPrimitive + ScalarOperand,
F: Flag,
type Output = QFlag<N, F>
The resulting type after applying the - operator.
fn sub(self, other: Self) -> Self::Output[src]
impl<N, F> Sub<QFlag<N, F>> for QFlag<N, F> where
N: Clone + Num + FromPrimitive + ScalarOperand,
F: Flag, [src]
N: Clone + Num + FromPrimitive + ScalarOperand,
F: Flag,
Auto Trait Implementations
impl<N, F> !RefUnwindSafe for QFlag<N, F>
impl<N, F> !Send for QFlag<N, F>
impl<N, F> !Sync for QFlag<N, F>
impl<N, F> Unpin for QFlag<N, F> where
F: Unpin,
F: Unpin,
impl<N, F> !UnwindSafe for QFlag<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,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> ClosedNeg for T where
T: Neg<Output = T>,
T: Neg<Output = T>,
impl<T> From<T> for T[src]
impl<F> Html for F where
F: Draw, [src]
F: Draw,
fn print_html<W>(&Self, &mut W) -> Result<(), Error> where
W: Write, [src]
W: Write,
const LATEX: bool[src]
fn html(&self, name: &str) -> Result<()>[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>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
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.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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.
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.
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>,