HOG2
Public Member Functions | List of all members
MR1KPermutation Class Reference

#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
 

Detailed Description

Definition at line 16 of file MR1Permutation.h.

Member Function Documentation

◆ Rank() [1/2]

uint64_t MR1KPermutation::Rank ( int *  items,
int *  dual,
int  k,
int  N 
) const

◆ Rank() [2/2]

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().

◆ Unrank()

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().


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