tfel
Loading...
Searching...
No Matches
tfel::math::ScalarIndexingPolicy< SizeType > Struct Template Reference

an indexing policy suitable for scalar More...

#include </home/runner/work/tfel/tfel/include/TFEL/Math/Array/FixedSizeIndexingPolicies.hxx>

Public Types

using size_type = SizeType
using RowMajorIndexingPolicy = ScalarIndexingPolicy<SizeType>

Public Member Functions

TFEL_HOST_DEVICE constexpr size_type getUnderlyingArrayMinimalSize () const noexcept
TFEL_HOST_DEVICE constexpr bool empty () const noexcept
TFEL_HOST_DEVICE constexpr size_type size () const noexcept
TFEL_HOST_DEVICE constexpr auto getRowMajorIndexingPolicy ()

Static Public Attributes

static constexpr auto hasFixedSizes = true
static constexpr size_type arity = 0
static constexpr auto areDataContiguous = true
static constexpr auto unRollLoop = true

Detailed Description

template<typename SizeType>
struct tfel::math::ScalarIndexingPolicy< SizeType >

an indexing policy suitable for scalar

Template Parameters
SizeTypetype used for indexing

Member Function Documentation

◆ empty()

template<typename SizeType>
TFEL_HOST_DEVICE constexpr bool tfel::math::ScalarIndexingPolicy< SizeType >::empty ( ) const
inlinenodiscardconstexprnoexcept
Returns
if the array is empty

◆ getUnderlyingArrayMinimalSize()

template<typename SizeType>
TFEL_HOST_DEVICE constexpr size_type tfel::math::ScalarIndexingPolicy< SizeType >::getUnderlyingArrayMinimalSize ( ) const
inlinenodiscardconstexprnoexcept
Returns
the minimal data size

◆ size()

template<typename SizeType>
TFEL_HOST_DEVICE constexpr size_type tfel::math::ScalarIndexingPolicy< SizeType >::size ( ) const
inlinenodiscardconstexprnoexcept
Returns
the logical size of the array

The documentation for this struct was generated from the following file: