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.

00041 : v () {}

permutation ( const vector< nat > &  v2  )  [inline]

Definition at line 42 of file permutation.hpp.

00042 : v (v2) {}

permutation ( const vector< int > &  v2  )  [inline]

Definition at line 43 of file permutation.hpp.

00043 : v (as<vector<nat> > (v2)) {}

permutation ( const nat &  k  )  [inline]

Definition at line 44 of file permutation.hpp.

00044 : v (id_vector (k)) {}

permutation ( const int &  k  )  [inline]

Definition at line 45 of file permutation.hpp.

00045 : v (id_vector (k)) {}

permutation ( const permutation p  )  [inline]

Definition at line 46 of file permutation.hpp.

00046 : v (p.v) {}


Member Function Documentation

vector<C,V> operator() ( const vector< C, V > &  w  )  [inline]

Definition at line 50 of file permutation.hpp.

References mmx::N().

00050                                      {
00051     ASSERT (N(v) == N(w), "sizes do not match");
00052     vector<C,V>  t= w;
00053     for (nat i= 0; i < N (v); i++) t[v[i]]= w[i];
00054     return t; }

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

Definition at line 47 of file permutation.hpp.

00047 { return v[i]; }

vector<nat> operator* (  )  const [inline]

Definition at line 37 of file permutation.hpp.

00037 { return v; }


Friends And Related Function Documentation

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

Definition at line 38 of file permutation.hpp.

00038 { return p.v; }

vector<int> as_vector_int ( const permutation p  )  [friend]

Definition at line 39 of file permutation.hpp.

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


The documentation for this class was generated from the following file:

Generated on 20 Mar 2013 for algebramix by  doxygen 1.6.1