From 2a2daee1590c8e76392a2007ea064f39b7f829c7 Mon Sep 17 00:00:00 2001 From: Hans Dembinski Date: Sun, 4 Jun 2017 11:58:05 +0200 Subject: [PATCH] fix --- test/speed_cpp.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/test/speed_cpp.cpp b/test/speed_cpp.cpp index 65d71279..5250ec32 100644 --- a/test/speed_cpp.cpp +++ b/test/speed_cpp.cpp @@ -36,7 +36,7 @@ template double compare_1d(unsigned n, int distrib) { auto best = std::numeric_limits::max(); for (unsigned k = 0; k < 50; ++k) { - auto h = Histogram(regular_axis<>(100, 0, 1)); + auto h = Histogram(axis::regular<>(100, 0, 1)); auto t = clock(); for (unsigned i = 0; i < n; ++i) h.fill(r[i]); @@ -52,7 +52,7 @@ template double compare_2d(unsigned n, int distrib) { auto best = std::numeric_limits::max(); for (unsigned k = 0; k < 50; ++k) { - auto h = Histogram(regular_axis<>(100, 0, 1), regular_axis<>(100, 0, 1)); + auto h = Histogram(axis::regular<>(100, 0, 1), axis::regular<>(100, 0, 1)); auto t = clock(); for (unsigned i = 0; i < n/2; ++i) h.fill(r[2 * i], r[2 * i + 1]); @@ -68,8 +68,8 @@ template double compare_3d(unsigned n, int distrib) { auto best = std::numeric_limits::max(); for (unsigned k = 0; k < 50; ++k) { - auto h = Histogram(regular_axis<>(100, 0, 1), regular_axis<>(100, 0, 1), - regular_axis<>(100, 0, 1)); + auto h = Histogram(axis::regular<>(100, 0, 1), axis::regular<>(100, 0, 1), + axis::regular<>(100, 0, 1)); auto t = clock(); for (unsigned i = 0; i < n/3; ++i) h.fill(r[3 * i], r[3 * i + 1], r[3 * i + 2]); @@ -85,9 +85,9 @@ template double compare_6d(unsigned n, int distrib) { auto best = std::numeric_limits::max(); for (unsigned k = 0; k < 50; ++k) { - auto h = Histogram(regular_axis<>(10, 0, 1), regular_axis<>(10, 0, 1), - regular_axis<>(10, 0, 1), regular_axis<>(10, 0, 1), - regular_axis<>(10, 0, 1), regular_axis<>(10, 0, 1)); + auto h = Histogram(axis::regular<>(10, 0, 1), axis::regular<>(10, 0, 1), + axis::regular<>(10, 0, 1), axis::regular<>(10, 0, 1), + axis::regular<>(10, 0, 1), axis::regular<>(10, 0, 1)); auto t = clock(); for (unsigned i = 0; i < n/6; ++i) { @@ -109,11 +109,11 @@ int main() { else printf("normal distribution\n"); printf("hs_ss %.3f\n", - compare_1d>, + compare_1d>, container_storage>>>( 6000000, itype)); printf("hs_sd %.3f\n", - compare_1d>, + compare_1d>, adaptive_storage<>>>(6000000, itype)); printf("hd_ss %.3f\n", compare_1d, regular_axis<>>, + mpl::vector, axis::regular<>>, container_storage>>>(6000000, itype)); printf("hs_sd %.3f\n", compare_2d, regular_axis<>>, + mpl::vector, axis::regular<>>, adaptive_storage<>>>(6000000, itype)); printf("hd_ss %.3f\n", compare_2d, regular_axis<>, regular_axis<>>, + mpl::vector, axis::regular<>, axis::regular<>>, container_storage>>>(6000000, itype)); printf("hs_sd %.3f\n", compare_3d, regular_axis<>, regular_axis<>>, + mpl::vector, axis::regular<>, axis::regular<>>, adaptive_storage<>>>(6000000, itype)); printf("hd_ss %.3f\n", compare_3d, regular_axis<>, regular_axis<>, - regular_axis<>, regular_axis<>, regular_axis<>>, + mpl::vector, axis::regular<>, axis::regular<>, + axis::regular<>, axis::regular<>, axis::regular<>>, container_storage>>>(6000000, itype)); printf("hs_sd %.3f\n", compare_6d, regular_axis<>, regular_axis<>, - regular_axis<>, regular_axis<>, regular_axis<>>, + mpl::vector, axis::regular<>, axis::regular<>, + axis::regular<>, axis::regular<>, axis::regular<>>, adaptive_storage<>>>(6000000, itype)); printf("hd_ss %.3f\n", compare_6d