Struct discrete::Permutation [] [src]

pub struct Permutation<T = Data>(_);

Dimension is natural number, position is a list of numbers.

Trait Implementations

impl<T> Construct for Permutation<T>
[src]

Constructs a new Self.

impl Count<usize> for Permutation<Data>
[src]

Counts the size of space given the dimensions.

impl<T, U> Count<U> for Permutation<Of<T>> where
    T: Construct + Count<U>, 
[src]

Counts the size of space given the dimensions.

impl Zero<usize, Vec<usize>> for Permutation<Data>
[src]

Creates a default element.

impl<T, U, V> Zero<U, Vec<V>> for Permutation<Of<T>> where
    T: Construct + Count<U> + Zero<U, V>,
    V: Default + Clone
[src]

Creates a default element.

impl ToIndex<usize, Vec<usize>> for Permutation<Data>
[src]

Converts position to index.

impl<T, U, V> ToIndex<U, Vec<V>> for Permutation<Of<T>> where
    T: Construct + ToIndex<U, V> + Count<U>,
    V: Clone
[src]

Converts position to index.

impl ToPos<usize, Vec<usize>> for Permutation<Data>
[src]

Converts index to position.

impl<T, U, V> ToPos<U, Vec<V>> for Permutation<Of<T>> where
    T: Construct + Count<U> + ToPos<U, V>,
    V: Default
[src]

Converts index to position.