From 5930711c699d4c2b4d01c818e48a4ef8d00985f6 Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Fri, 5 Apr 2024 18:40:51 +0200 Subject: [PATCH] formatting --- include/highfive/xtensor.hpp | 4 ++-- tests/unit/data_generator.hpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/highfive/xtensor.hpp b/include/highfive/xtensor.hpp index 3e62e4632..a9e034eb0 100644 --- a/include/highfive/xtensor.hpp +++ b/include/highfive/xtensor.hpp @@ -79,7 +79,7 @@ struct xtensor_inspector { }; template -struct inspector> : public xtensor_inspector, true> { +struct inspector>: public xtensor_inspector, true> { private: using super = xtensor_inspector, true>; @@ -91,7 +91,7 @@ struct inspector> : public xtensor_inspector }; template -struct inspector> : public xtensor_inspector, false> { +struct inspector>: public xtensor_inspector, false> { private: using super = xtensor_inspector, false>; diff --git a/tests/unit/data_generator.hpp b/tests/unit/data_generator.hpp index adbc32de2..0a66c9450 100644 --- a/tests/unit/data_generator.hpp +++ b/tests/unit/data_generator.hpp @@ -25,7 +25,7 @@ namespace HighFive { namespace testing { -template +template std::vector lstrip(const Dims& indices, size_t n) { std::vector subindices(indices.size() - n); for (size_t i = 0; i < subindices.size(); ++i) { @@ -35,7 +35,7 @@ std::vector lstrip(const Dims& indices, size_t n) { return subindices; } -template +template size_t ravel(std::vector& indices, const Dims& dims) { size_t rank = dims.size(); size_t linear_index = 0; @@ -49,7 +49,7 @@ size_t ravel(std::vector& indices, const Dims& dims) { return linear_index; } -template +template std::vector unravel(size_t flat_index, const Dims& dims) { size_t rank = dims.size(); size_t ld = 1; @@ -63,7 +63,7 @@ std::vector unravel(size_t flat_index, const Dims& dims) { return indices; } -template +template static size_t flat_size(const Dims& dims) { size_t n = 1; for (auto d: dims) {