Struct discrete::Permutation
[−]
[src]
pub struct Permutation<T>(_);
Dimension is natural number, position is a list of numbers.
Trait Implementations
impl<T> Construct for Permutation<T>
[src]
fn new() -> Permutation<T>
Constructs a new Self.
impl Count<usize> for Permutation<Data>
[src]
impl<T, U> Count<(usize, U)> for Permutation<Subspace<T>> where T: Construct + Count<U>
[src]
impl<T, U> Count<U> for Permutation<Of<T>> where T: Construct + Count<U>
[src]
impl<'a> ToIndex<usize, &'a [usize]> for Permutation<Data>
[src]
impl<'a, T, U: Copy, V> ToIndex<(usize, U), (&'a [usize], V)> for Permutation<Subspace<T>> where T: Construct + Count<U> + ToIndex<U, V>
[src]
fn to_index(&self, (a, b): (usize, U), (pa, pb): (&'a [usize], V)) -> usize
Converts position to index.
impl<'a, T, U: Copy, V: Copy> ToIndex<U, &'a [V]> for Permutation<Of<T>> where T: Construct + ToIndex<U, V> + Count<U>
[src]
impl ToPos<usize, Vec<usize>> for Permutation<Data>
[src]
impl<T, U: Copy, V> ToPos<(usize, U), (Vec<usize>, V)> for Permutation<Subspace<T>> where T: Construct + Count<U> + ToPos<U, V>
[src]
fn to_pos(&self, (a, b): (usize, U), index: usize, (head, tail): &mut (Vec<usize>, V))
Converts index to position.