tfel
Loading...
Searching...
No Matches
StridedView.hxx File Reference
#include <utility>
#include "TFEL/Math/Array/ScatteredView.hxx"

Classes

struct  tfel::math::StridedAccessPolicy< MappedType, IndexingPolicyType >
 access policy storing a pointer to the first component of the mapped object and the stride between two successive components 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.

Typedefs

template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
using tfel::math::StridedView
 view storing a pointer to the first component of the mapped object and the stride between two successive components
template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
using tfel::math::ConstStridedView
template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
using tfel::math::StridedView
 view storing a pointer to the first component of the mapped object and the stride between two successive components
template<MappableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
using tfel::math::ConstStridedView

Functions

template<MappableMutableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename MappedType::indexing_policy>
requires ((!std::is_const_v<MappedType>)&&( std::remove_cv_t<MappedType>::hasFixedSizes))
TFEL_HOST_DEVICE constexpr StridedView< MappedType, IndexingPolicyType > tfel::math::map_strided (const ViewDataPointerType< MappedType > p, const std::size_t s)
 return a strided view from a base pointer and a stride
template<MappableImmutableMathObjectUsingScatteredViewConcept MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy>
requires ((std::remove_cv_t<MappedType>::indexing_policy::hasFixedSizes))
TFEL_HOST_DEVICE constexpr StridedView< MappedType, IndexingPolicyType > tfel::math::map_strided (const ViewConstDataPointerType< std::remove_cv_t< MappedType > > p, const std::size_t s)

Detailed Description

Author
Tristan Chenaille
Date
15/01/2026