HOG2
|
#include <MR1Permutation.h>
Public Member Functions | |
uint64_t | Rank (int *items, int *dual, int k, int N) const |
void | Unrank (uint64_t hash, int *items, int *dual, int k, int N) const |
Given the hash returns the state and its dual. More... | |
uint64_t | Rank (uint8_t *items, uint8_t *dual, int k, int N) const |
Definition at line 16 of file MR1Permutation.h.
uint64_t MR1KPermutation::Rank | ( | int * | items, |
int * | dual, | ||
int | k, | ||
int | N | ||
) | const |
Definition at line 21 of file MR1Permutation.cpp.
References swap().
Referenced by RubikCornerPDB::GetPDBHash(), RubikEdgePDB::GetPDBHash(), and PermutationPuzzle::PermutationPuzzleEnvironment< TopSpinState< N >, TopSpinAction >::Hash().
uint64_t MR1KPermutation::Rank | ( | uint8_t * | items, |
uint8_t * | dual, | ||
int | k, | ||
int | N | ||
) | const |
Definition at line 43 of file MR1Permutation.cpp.
References swap().
void MR1KPermutation::Unrank | ( | uint64_t | hash, |
int * | items, | ||
int * | dual, | ||
int | k, | ||
int | N | ||
) | const |
Given the hash returns the state and its dual.
Definition at line 68 of file MR1Permutation.cpp.
References swap().
Referenced by RubikCornerPDB::GetStateFromPDBHash(), and RubikEdgePDB::GetStateFromPDBHash().