[−][src]Struct flag_algebra::operator::Basis
The set of flags of size size and type t .get() returns an ordered vector containing all corresponding flags
Fields
size: usizeNumber of vertices of the flags of the basis.
t: TypeType of the flags of the basis.
Methods
impl<F: Flag> Basis<F>[src]
pub fn make(size: usize, t: Type) -> Self[src]
Constructor for a basis.
pub fn new(size: usize) -> Self[src]
Basis of flag with size vertices and without type.
pub fn with_size(&self, size: usize) -> Self[src]
Basis of flag with size vertices and same type as self.
pub fn with_type(&self, t: Type) -> Self[src]
Basis of flag with same size as self and type t.
pub fn without_type(&self) -> Self[src]
Basis of flag with same size as self without type t.
pub fn print_concise(&self) -> String[src]
Print the basis information in a short way
impl<F> Basis<F> where
F: Flag, [src]
F: Flag,
Constructing quantum graphs on a basis
pub fn zero<N>(self) -> QFlag<N, F> where
N: Num + Clone, [src]
N: Num + Clone,
pub fn one<N>(self) -> QFlag<N, F> where
N: Num + Clone, [src]
N: Num + Clone,
pub fn random<N>(self) -> QFlag<N, F> where
N: From<i16>, [src]
N: From<i16>,
pub fn flag_from_id<N>(self, id: usize) -> QFlag<N, F> where
N: Num + Clone, [src]
N: Num + Clone,
pub fn flag_from_id_with_base_size<N>(
self,
id: usize,
size: usize
) -> QFlag<N, F> where
N: Num + Clone, [src]
self,
id: usize,
size: usize
) -> QFlag<N, F> where
N: Num + Clone,
pub fn flag<N>(self, f: &F) -> QFlag<N, F> where
N: Num + Clone, [src]
N: Num + Clone,
pub fn from_vec<N>(self, vec: Vec<N>) -> QFlag<N, F>[src]
pub fn from_coeff<M, N, P>(&self, f: P) -> QFlag<N, F> where
M: Into<N>,
P: FnMut(&F, usize) -> M, [src]
M: Into<N>,
P: FnMut(&F, usize) -> M,
pub fn from_indicator<N, P>(&self, f: P) -> QFlag<N, F> where
N: One + Zero,
P: FnMut(&F, usize) -> bool, [src]
N: One + Zero,
P: FnMut(&F, usize) -> bool,
pub fn all_cs(&self) -> Vec<MulAndUnlabeling<F>>[src]
Trait Implementations
impl<F: Flag> Savable<Vec<F>, F> for Basis<F>[src]
fn filename(&self) -> String[src]
fn create(&self) -> Vec<F>[src]
fn file_path(&self) -> PathBuf[src]
fn create_and_save(&self, path: &Path) -> A[src]
fn load(&self, path: &Path) -> Result<A, Box<dyn Error>>[src]
fn get(&self) -> A[src]
impl<F> Clone for Basis<F>[src]
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<F> Copy for Basis<F>[src]
impl<F: Eq> Eq for Basis<F>[src]
impl<F: PartialEq> PartialEq<Basis<F>> for Basis<F>[src]
impl<F> Display for Basis<F>[src]
impl<F: Debug> Debug for Basis<F>[src]
impl<F: Flag> Div<Basis<F>> for Basis<F>[src]
type Output = Self
The resulting type after applying the / operator.
fn div(self, rhs: Self) -> Self[src]
impl<F: Flag> Mul<Basis<F>> for Basis<F>[src]
type Output = Self
The resulting type after applying the * operator.
fn mul(self, rhs: Self) -> Self[src]
impl<F: Hash> Hash for Basis<F>[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<F> StructuralPartialEq for Basis<F>[src]
impl<F> StructuralEq for Basis<F>[src]
Auto Trait Implementations
impl<F> Send for Basis<F> where
F: Send,
F: Send,
impl<F> Sync for Basis<F> where
F: Sync,
F: Sync,
impl<F> Unpin for Basis<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for Basis<F> where
F: UnwindSafe,
F: UnwindSafe,
impl<F> RefUnwindSafe for Basis<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
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> 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.
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<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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
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> Same<T> for T[src]
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,