This commit is contained in:
2025-05-07 23:20:02 -04:00
parent 073d1ce57c
commit 358b76254b
6 changed files with 34 additions and 5 deletions

View File

@ -74,8 +74,8 @@ static const int perm_failure = -1;
int factorial(int n);
//Iteratable Permutation Class
//Provides an object for iterating over permutations of low dimension
//These can be stepped along
//Provides an object for iterating over permutations of low order (<=12)
//These can be stepped along in a loop
class ipermutation
{
public:
@ -172,8 +172,6 @@ class permutation
int& at(const int ind);
const int& at(const int ind) const;
static permutation first(int length);
static permutation last(int length);
@ -182,8 +180,11 @@ class permutation
int _intl_calculate_mindex(int *mindex, int *wrk);
int levi_civita();
void print(int style);
};
void test_permutation1();
}; //end namespace perm
}; //end namespace ams