tfel
Loading...
Searching...
No Matches
IndexingPolicies.hxx File Reference
#include <tuple>
#include <utility>
#include <type_traits>
#include "TFEL/Config/TFELConfig.hxx"
#include "TFEL/Math/Array/IndexingPolicies.ixx"

Classes

struct  tfel::math::IndexingPoliciesCompatiblityCheckBase< IndexingPolicy1, IndexingPolicy2 >
 a base class to compare indexing policies which provide default implementations. More...
struct  tfel::math::IndexingPoliciesCompatiblityCheck< IndexingPolicy1, IndexingPolicy2 >
 a structure used to compare two indexing policies More...

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.
namespace  tfel::math
 This namespace contains various classes and functions défining mathematical objects and numerical algorithms.

Functions

template<typename IndexingPolicy, typename... Indices>
TFEL_HOST_DEVICE constexpr void tfel::math::checkIndicesValiditity () noexcept
 a simple function to check that the type of the indices are compatible with the given indexing policy
template<typename IndexingPolicy1, typename IndexingPolicy2>
TFEL_HOST_DEVICE constexpr bool tfel::math::checkIndexingPoliciesCompatiblity ()
 check if two indexing policies can be compatible.
template<typename IndexingPolicy1, typename IndexingPolicy2>
TFEL_HOST_DEVICE constexpr bool tfel::math::haveIndexingPoliciesTheSameMemoryLayout ()
template<typename IndexingPolicy1, typename IndexingPolicy2>
TFEL_HOST_DEVICE constexpr bool tfel::math::areIndexingPoliciesCompatibleAtRunTime (const IndexingPolicy1 &, const IndexingPolicy2 &)
template<typename IndexingPolicy1, typename IndexingPolicy2>
TFEL_HOST_DEVICE constexpr void tfel::math::checkIndexingPoliciesRuntimeCompatiblity (const IndexingPolicy1 &, const IndexingPolicy2 &)
 check if two indexing policies are compatible at runtime.
template<typename IndexingPolicy, typename... T, std::size_t... I>
constexpr auto tfel::math::buildIndexingPolicyFromTuple (const std::tuple< T... > &, const std::index_sequence< I... > &)
template<typename IndexingPolicy, typename... Args>
constexpr auto tfel::math::buildIndexingPolicyAndExtractPointerToData (Args &... args)
template<typename T>
TFEL_HOST_DEVICE constexpr bool tfel::math::hasIndexingPolicy ()
 a simple metafunction which looks if the given type provides an internal type called indexing_policy

Variables

template<typename IndexingPolicyType>
constexpr auto tfel::math::indexing_policy_size
 total size of a fixed size policy

Detailed Description

Author
Thomas Helfer
Date
01/01/2021