-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes broadcasting in favour of using `squeezeMemSpace` and `reshapeMemSpace`. Details can be found in the Migration Guide.
- Loading branch information
Showing
9 changed files
with
204 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright (c), 2024, BlueBrain Project, EPFL | ||
* | ||
* Distributed under the Boost Software License, Version 1.0. | ||
* (See accompanying file LICENSE_1_0.txt or copy at | ||
* http://www.boost.org/LICENSE_1_0.txt) | ||
* | ||
*/ | ||
#pragma once | ||
|
||
#include <vector> | ||
#include "../H5Exception.hpp" | ||
#include "../H5DataSpace.hpp" | ||
|
||
namespace HighFive { | ||
namespace detail { | ||
|
||
inline void assert_compatible_spaces(const DataSpace& old, const std::vector<size_t>& dims) { | ||
auto n_elements_old = old.getElementCount(); | ||
auto n_elements_new = dims.size() == 0 ? 1 : compute_total_size(dims); | ||
|
||
if (n_elements_old != n_elements_new) { | ||
throw Exception("Invalid parameter `new_dims` number of elements differ: " + | ||
std::to_string(n_elements_old) + " (old) vs. " + | ||
std::to_string(n_elements_new) + " (new)"); | ||
} | ||
} | ||
} // namespace detail | ||
} // namespace HighFive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.