Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed Apr 5, 2024
1 parent 989ef52 commit 5930711
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/highfive/xtensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct xtensor_inspector {
};

template <typename T, size_t N>
struct inspector<xt::xtensor<T, N>> : public xtensor_inspector<xt::xtensor<T, N>, true> {
struct inspector<xt::xtensor<T, N>>: public xtensor_inspector<xt::xtensor<T, N>, true> {
private:
using super = xtensor_inspector<xt::xtensor<T, N>, true>;

Expand All @@ -91,7 +91,7 @@ struct inspector<xt::xtensor<T, N>> : public xtensor_inspector<xt::xtensor<T, N>
};

template <typename T, size_t N, xt::layout_type L>
struct inspector<xt::xtensor<T, N, L>> : public xtensor_inspector<xt::xtensor<T, N, L>, false> {
struct inspector<xt::xtensor<T, N, L>>: public xtensor_inspector<xt::xtensor<T, N, L>, false> {
private:
using super = xtensor_inspector<xt::xtensor<T, N, L>, false>;

Expand Down
8 changes: 4 additions & 4 deletions tests/unit/data_generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
namespace HighFive {
namespace testing {

template<class Dims>
template <class Dims>
std::vector<size_t> lstrip(const Dims& indices, size_t n) {
std::vector<size_t> subindices(indices.size() - n);
for (size_t i = 0; i < subindices.size(); ++i) {
Expand All @@ -35,7 +35,7 @@ std::vector<size_t> lstrip(const Dims& indices, size_t n) {
return subindices;
}

template<class Dims>
template <class Dims>
size_t ravel(std::vector<size_t>& indices, const Dims& dims) {
size_t rank = dims.size();
size_t linear_index = 0;
Expand All @@ -49,7 +49,7 @@ size_t ravel(std::vector<size_t>& indices, const Dims& dims) {
return linear_index;
}

template<class Dims>
template <class Dims>
std::vector<size_t> unravel(size_t flat_index, const Dims& dims) {
size_t rank = dims.size();
size_t ld = 1;
Expand All @@ -63,7 +63,7 @@ std::vector<size_t> unravel(size_t flat_index, const Dims& dims) {
return indices;
}

template<class Dims>
template <class Dims>
static size_t flat_size(const Dims& dims) {
size_t n = 1;
for (auto d: dims) {
Expand Down

0 comments on commit 5930711

Please sign in to comment.