AutoPas  3.0.0
Loading...
Searching...
No Matches
Namespaces | Functions
ThreeDimensionalMapping.h File Reference
#include <array>
#include <type_traits>
Include dependency graph for ThreeDimensionalMapping.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  autopas
 This is the main namespace of AutoPas.
 
namespace  autopas::utils
 In this namespace some helper classes and functions can be found used inside of AutoPas.
 
namespace  autopas::utils::ThreeDimensionalMapping
 Namespace to handle the conversion between one dimensional and three dimensional indices.
 

Functions

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.
 

Detailed Description

Date
15 May 2017
Author
tchipevn