diff options
author | David Robillard <d@drobilla.net> | 2018-08-18 17:37:59 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-29 14:46:57 +0200 |
commit | ad4f4edefc5da702e9efa4ec7b40830e91abb6cf (patch) | |
tree | 8741fc79ad732b8d3f19e81a530107ec4bd7a3c3 /test/test_gray_code_rank.cpp | |
parent | 13bcfa8bc31510b926a1f638d071dc83253179e2 (diff) | |
download | chilbert-ad4f4edefc5da702e9efa4ec7b40830e91abb6cf.tar.gz chilbert-ad4f4edefc5da702e9efa4ec7b40830e91abb6cf.tar.bz2 chilbert-ad4f4edefc5da702e9efa4ec7b40830e91abb6cf.zip |
Add Compact Hilbert Index tests
Diffstat (limited to 'test/test_gray_code_rank.cpp')
-rw-r--r-- | test/test_gray_code_rank.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/test_gray_code_rank.cpp b/test/test_gray_code_rank.cpp index c52bab6..7980bf3 100644 --- a/test/test_gray_code_rank.cpp +++ b/test/test_gray_code_rank.cpp @@ -31,21 +31,6 @@ #include <iostream> #include <iterator> -/// Return an array of D precisions with sum at most N -template <size_t N, size_t D> -std::array<size_t, D> -make_random_precisions(Context& ctx) -{ - std::array<size_t, D> ms; - size_t bits_left = N; - for (size_t i = 0; i < D; ++i) { - ms[i] = rand_between(ctx, 1, bits_left / (D - i) + 1); - bits_left -= ms[i]; - } - - return ms; -} - template <class T, size_t N, size_t D> T get_mask(const std::array<size_t, D>& ms, const size_t d, const size_t step) |