algebramix_doc 0.3
permutation Class Reference

#include <permutation.hpp>

List of all members.

Public Member Functions

Friends


Detailed Description

Definition at line 33 of file permutation.hpp.


Constructor & Destructor Documentation

permutation ( ) [inline]

Definition at line 41 of file permutation.hpp.

: v () {}
permutation ( const vector< nat > &  v2) [inline]

Definition at line 42 of file permutation.hpp.

: v (v2) {}
permutation ( const vector< int > &  v2) [inline]

Definition at line 43 of file permutation.hpp.

: v (as<vector<nat> > (v2)) {}
permutation ( const nat &  k) [inline]

Definition at line 44 of file permutation.hpp.

: v (id_vector (k)) {}
permutation ( const int &  k) [inline]

Definition at line 45 of file permutation.hpp.

: v (id_vector (k)) {}
permutation ( const permutation p) [inline]

Definition at line 46 of file permutation.hpp.

: v (p.v) {}

Member Function Documentation

nat operator() ( nat  i) const [inline]

Definition at line 47 of file permutation.hpp.

{ return v[i]; }
vector<C,V> operator() ( const vector< C, V > &  w) [inline]

Definition at line 50 of file permutation.hpp.

References mmx::N().

                                     {
    ASSERT (N(v) == N(w), "sizes do not match");
    vector<C,V>  t= w;
    for (nat i= 0; i < N (v); i++) t[v[i]]= w[i];
    return t; }
vector<nat> operator* ( ) const [inline]

Definition at line 37 of file permutation.hpp.

{ return v; }

Friends And Related Function Documentation

vector<nat> as_vector ( const permutation p) [friend]

Definition at line 38 of file permutation.hpp.

{ return p.v; }
vector<int> as_vector_int ( const permutation p) [friend]

Definition at line 39 of file permutation.hpp.

                                                                 {
    return as<vector<int> > (p.v); }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines