#include <array>
#include <type_traits>
Go to the source code of this file.
|
template<typename T > |
constexpr T | autopas::utils::ThreeDimensionalMapping::threeToOneD (T x, T y, T z, const std::array< T, 3 > &dims) |
| Convert a 3d index to a 1d index.
|
|
template<typename T > |
constexpr T | autopas::utils::ThreeDimensionalMapping::threeToOneD (const std::array< T, 3 > &index3d, const std::array< T, 3 > &dims) |
| Convert a 3d index to a 1d index.
|
|
template<typename T > |
constexpr std::array< T, 3 > | autopas::utils::ThreeDimensionalMapping::oneToThreeD (T ind, const std::array< T, 3 > &dims) |
| Convert a 1d index to a 3d index.
|
|
- Date
- 15 May 2017
- Author
- tchipevn