From 66f8ba7f06b9369276e6210f756b075591efa6fa Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 23 Apr 2019 20:55:47 +0200 Subject: Support using any array-like type for points --- test/bench_hilbert.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/bench_hilbert.cpp') diff --git a/test/bench_hilbert.cpp b/test/bench_hilbert.cpp index c5f1ad9..e216efe 100644 --- a/test/bench_hilbert.cpp +++ b/test/bench_hilbert.cpp @@ -33,8 +33,7 @@ struct BenchCoordsToIndex const auto p = make_random_point(ctx); H ha = make_zero_bitvec(); - return run_bench( - [&](auto) { chilbert::coords_to_index(p.data(), M, D, ha); }); + return run_bench([&](auto) { chilbert::coords_to_index(p, M, D, ha); }); } }; @@ -46,8 +45,7 @@ struct BenchIndexToCoords auto p = make_random_point(ctx); const H ha = make_random_bitvec(ctx); - return run_bench( - [&](auto) { chilbert::index_to_coords(p.data(), M, D, ha); }); + return run_bench([&](auto) { chilbert::index_to_coords(p, M, D, ha); }); } }; -- cgit v1.2.1