aboutsummaryrefslogtreecommitdiffstats
path: root/chilbert/Hilbert.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'chilbert/Hilbert.hpp')
-rw-r--r--chilbert/Hilbert.hpp102
1 files changed, 60 insertions, 42 deletions
diff --git a/chilbert/Hilbert.hpp b/chilbert/Hilbert.hpp
index 34279ae..a6b48fb 100644
--- a/chilbert/Hilbert.hpp
+++ b/chilbert/Hilbert.hpp
@@ -62,35 +62,41 @@ namespace chilbert {
// fix -> fix
inline void
-coordsToIndex(const CFixBitVec* p, int m, int n, CFixBitVec& h)
+coordsToIndex(const CFixBitVec* const p,
+ const size_t m,
+ const size_t n,
+ CFixBitVec& h)
{
coordsToIndex<CFixBitVec, CFixBitVec>(p, m, n, h);
}
inline void
-indexToCoords(CFixBitVec* p, int m, int n, const CFixBitVec& h)
+indexToCoords(CFixBitVec* const p,
+ const size_t m,
+ const size_t n,
+ const CFixBitVec& h)
{
indexToCoords<CFixBitVec, CFixBitVec>(p, m, n, h);
}
inline void
-coordsToCompactIndex(const CFixBitVec* p,
- const int* ms,
- int n,
- CFixBitVec& hc,
- int M,
- int m)
+coordsToCompactIndex(const CFixBitVec* const p,
+ const size_t* const ms,
+ const size_t n,
+ CFixBitVec& hc,
+ const size_t M,
+ const size_t m)
{
coordsToCompactIndex<CFixBitVec, CFixBitVec>(p, ms, n, hc, M, m);
}
inline void
-compactIndexToCoords(CFixBitVec* p,
- const int* ms,
- int n,
- const CFixBitVec& hc,
- int M,
- int m)
+compactIndexToCoords(CFixBitVec* const p,
+ const size_t* const ms,
+ const size_t n,
+ const CFixBitVec& hc,
+ const size_t M,
+ const size_t m)
{
compactIndexToCoords<CFixBitVec, CFixBitVec>(p, ms, n, hc, M, m);
}
@@ -98,35 +104,41 @@ compactIndexToCoords(CFixBitVec* p,
// fix -> big
inline void
-coordsToIndex(const CFixBitVec* p, int m, int n, CBigBitVec& h)
+coordsToIndex(const CFixBitVec* const p,
+ const size_t m,
+ const size_t n,
+ CBigBitVec& h)
{
coordsToIndex<CFixBitVec, CBigBitVec>(p, m, n, h);
}
inline void
-indexToCoords(CFixBitVec* p, int m, int n, const CBigBitVec& h)
+indexToCoords(CFixBitVec* const p,
+ const size_t m,
+ const size_t n,
+ const CBigBitVec& h)
{
indexToCoords<CFixBitVec, CBigBitVec>(p, m, n, h);
}
inline void
-coordsToCompactIndex(const CFixBitVec* p,
- const int* ms,
- int n,
- CBigBitVec& hc,
- int M,
- int m)
+coordsToCompactIndex(const CFixBitVec* const p,
+ const size_t* const ms,
+ const size_t n,
+ CBigBitVec& hc,
+ const size_t M,
+ const size_t m)
{
coordsToCompactIndex<CFixBitVec, CBigBitVec>(p, ms, n, hc, M, m);
}
inline void
-compactIndexToCoords(CFixBitVec* p,
- const int* ms,
- int n,
- const CBigBitVec& hc,
- int M,
- int m)
+compactIndexToCoords(CFixBitVec* const p,
+ const size_t* const ms,
+ const size_t n,
+ const CBigBitVec& hc,
+ const size_t M,
+ const size_t m)
{
compactIndexToCoords<CFixBitVec, CBigBitVec>(p, ms, n, hc, M, m);
}
@@ -134,35 +146,41 @@ compactIndexToCoords(CFixBitVec* p,
// big -> big
inline void
-coordsToIndex(const CBigBitVec* p, int m, int n, CBigBitVec& h)
+coordsToIndex(const CBigBitVec* p,
+ const size_t m,
+ const size_t n,
+ CBigBitVec& h)
{
coordsToIndex<CBigBitVec, CBigBitVec>(p, m, n, h);
}
inline void
-indexToCoords(CBigBitVec* p, int m, int n, const CBigBitVec& h)
+indexToCoords(CBigBitVec* const p,
+ const size_t m,
+ const size_t n,
+ const CBigBitVec& h)
{
indexToCoords<CBigBitVec, CBigBitVec>(p, m, n, h);
}
inline void
-coordsToCompactIndex(const CBigBitVec* p,
- const int* ms,
- int n,
- CBigBitVec& hc,
- int M,
- int m)
+coordsToCompactIndex(const CBigBitVec* const p,
+ const size_t* const ms,
+ const size_t n,
+ CBigBitVec& hc,
+ const size_t M,
+ const size_t m)
{
coordsToCompactIndex<CBigBitVec, CBigBitVec>(p, ms, n, hc, M, m);
}
inline void
-compactIndexToCoords(CBigBitVec* p,
- const int* ms,
- int n,
- const CBigBitVec& hc,
- int M,
- int m)
+compactIndexToCoords(CBigBitVec* const p,
+ const size_t* const ms,
+ const size_t n,
+ const CBigBitVec& hc,
+ const size_t M,
+ const size_t m)
{
compactIndexToCoords<CBigBitVec, CBigBitVec>(p, ms, n, hc, M, m);
}