update
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -14,13 +14,16 @@ namespace perm
|
|||||||
//Basic operations on preallocated buffers
|
//Basic operations on preallocated buffers
|
||||||
//for later C library export
|
//for later C library export
|
||||||
|
|
||||||
|
static const int perm_success = 0;
|
||||||
|
static const int perm_failure = -1;
|
||||||
|
|
||||||
int factorial(int n);
|
int factorial(int n);
|
||||||
|
|
||||||
int index_to_mindex(int index, int *mindex, int ndim);
|
int index_to_mindex(int index, int *mindex, int ndim);
|
||||||
|
|
||||||
int mindex_to_index(int *mindex, int ndim);
|
int mindex_to_index(int *mindex, int ndim);
|
||||||
void mindex_to_perm(int *mindex, int *perm, int ndim);
|
int mindex_to_perm(int *mindex, int *perm, int *wrk, int ndim);
|
||||||
void perm_to_mindex(int *perm, int *mindex, int ndim);
|
int perm_to_mindex(int *perm, int *mindex, int *wrk, int ndim);
|
||||||
|
|
||||||
bool perm_valid(int *perm, int ndim);
|
bool perm_valid(int *perm, int ndim);
|
||||||
|
|
||||||
|
@ -101,6 +101,20 @@ namespace perm
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int mindex_to_perm(int *mindex, int *perm, int *wrk, int ndim)
|
||||||
|
{
|
||||||
|
int ret = -1;
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
int perm_to_mindex(int *perm, int *mindex, int *wrk, int ndim)
|
||||||
|
{
|
||||||
|
int ret = -1;
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}; //end namespace perm
|
}; //end namespace perm
|
||||||
}; //end namespace ams
|
}; //end namespace ams
|
Reference in New Issue
Block a user