tfel
Loading...
Searching...
No Matches
ViewsArray.hxx File Reference
#include <array>
#include <type_traits>
#include "TFEL/Math/Array/View.hxx"
#include "TFEL/Math/Array/FixedSizeIndexingPolicies.hxx"

Classes

struct  tfel::math::internals::ViewsArrayBase< is_scalar, MappedType, ViewIndexingPolicyType >
 an helper structure using to define the type of views generate by ViewsArray. More...
struct  tfel::math::internals::ViewsArrayBase< true, MappedType, ViewIndexingPolicyType >
 an helper structure using to define the type of views generate by ViewsArray. More...
struct  tfel::math::internals::ViewsArrayDefaultViewIndexingPolicy< is_scalar, MappedType >
 a metafunction returning the default indexing policy for the given mapped type More...
struct  tfel::math::internals::ViewsArrayDefaultViewIndexingPolicy< true, MappedType >
 a metafunction returning the default indexing policy for the given scalar mapped type More...
struct  tfel::math::ViewsArray< MappedType, MemoryIndexingPolicyType, ViewIndexingPolicyType >
 a structure used to represent an array of views. More...
struct  tfel::math::ViewsFixedSizeVectorIndexingPolicy< MappedType, SizeType, N, Stride >

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.
namespace  tfel::math::internals
 This namespace contains classes, functions, metafunctions and data structures that are used internally in the tfel::math namespace and that are meant to be used by the end user.

Concepts

concept  tfel::math::FixedSizeArrayTypeDefininigArrayViewConcept

Typedefs

template<typename MappedType>
using tfel::math::ViewsArrayNumericType
 the numeric type used by the mapped type
template<typename MappedType>
using tfel::math::ViewsArrayStorageType
 the type of the values stored in the memory area: the base type of the numeric type for quantities, as for views (see ViewStorageType)
template<typename MappedType>
using tfel::math::ViewsArrayDataPointerType
 the pointer type used to build the view
template<typename MappedType, typename SizeType, SizeType N, SizeType Stride = getViewsArrayMinimalStride<MappedType>()>
using tfel::math::ViewsFixedSizeVector
template<FixedSizeArrayTypeDefininigArrayViewConcept ArrayType>
using tfel::math::StandardFixedSizeViewsArray

Functions

template<typename MappedType>
constexpr auto tfel::math::getViewsArrayMinimalStride ()
 return the minimal size required to a store the given object
template<FixedSizeArrayTypeDefininigArrayViewConcept ArrayType>
constexpr auto tfel::math::map_array (const ViewsArrayDataPointerType< std::conditional_t< std::is_const_v< ArrayType >, const numeric_type< ArrayType >, numeric_type< ArrayType > > > p)

Detailed Description

Author
Thomas Helfer
Date
19/05/2021