mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 12:54:50 +01:00
15 lines
304 B
C++
15 lines
304 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <numeric>
|
|
#include <functional>
|
|
#include <vector>
|
|
|
|
namespace HighFive {
|
|
|
|
inline size_t compute_total_size(const std::vector<size_t>& dims) {
|
|
return std::accumulate(dims.begin(), dims.end(), size_t{1u}, std::multiplies<size_t>());
|
|
}
|
|
|
|
} // namespace HighFive
|