Trait Basis

Source
pub trait Basis<I> {
    type BasisIter: Iterator<Item = Result<I, Error>>;

    // Required methods
    fn n_items(&self) -> usize;
    fn iter(&self) -> Self::BasisIter;
    fn first(&self) -> Option<I>;
}
Expand description

Trait defining behaviours of a basis consisting of linear-space items.

Required Associated Types§

Source

type BasisIter: Iterator<Item = Result<I, Error>>

Type of the iterator over items in the basis.

Required Methods§

Source

fn n_items(&self) -> usize

Returns the number of items in the basis.

Source

fn iter(&self) -> Self::BasisIter

An iterator over items in the basis.

Source

fn first(&self) -> Option<I>

Shared reference to the first item in the basis.

Implementors§

Source§

impl<'g, G, I> Basis<I> for OrbitBasis<'g, G, I>
where G: GroupProperties, I: Clone,

Source§

impl<I: Clone> Basis<I> for EagerBasis<I>