tfel
Loading...
Searching...
No Matches
tfel::math::MutableRuntimeArrayBase< Child, ArrayPolicy > Struct Template Reference

a base class for mutable arrays with runtime sizes. More...

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

Inheritance diagram for tfel::math::MutableRuntimeArrayBase< Child, ArrayPolicy >:
tfel::math::MutableArrayCommonMethods< Child, ArrayPolicy > tfel::math::MutableArraySTLCompatibilityLayer< Child, ArrayPolicy > tfel::math::ConstArrayCommonMethods< Child, ArrayPolicy > tfel::math::GenericRuntimeArray< matrix, RuntimeRowMajorMatrixArrayPolicy< ValueType > > tfel::math::GenericRuntimeArray< runtime_array< ValueType >, RuntimeVectorArrayPolicy< ValueType > > tfel::math::GenericRuntimeArray< vector, RuntimeVectorArrayPolicy< ValueType > > tfel::math::runtime_array< ValueType >

Public Member Functions

 MutableRuntimeArrayBase ()=default
 default constructor
 MutableRuntimeArrayBase (const typename ArrayPolicy::IndexingPolicy &)
 constructor from an indexing policy
 MutableRuntimeArrayBase (const MutableRuntimeArrayBase &)=default
 copy constructor
 MutableRuntimeArrayBase (MutableRuntimeArrayBase &&)=default
 move constructor
MutableRuntimeArrayBase & operator= (const MutableRuntimeArrayBase &)=default
 copy assignement
MutableRuntimeArrayBase & operator= (MutableRuntimeArrayBase &&)=default
 move assignement
TFEL_HOST_DEVICE constexpr const ArrayPolicy::IndexingPolicy & getIndexingPolicy () const noexcept
template<typename Functor>
void iterate (const Functor &)
 apply a multi-indices functor
Public Member Functions inherited from tfel::math::MutableArrayCommonMethods< Child, ArrayPolicy >
constexpr ArrayPolicy::reference operator() (const Indices... i) noexcept
constexpr void assign (const OtherArray &src) noexcept
constexpr void addAndAssign (const OtherArray &src) noexcept
constexpr void substractAndAssign (const OtherArray &src) noexcept
constexpr Child & operator= (const std::initializer_list< ValueType > &values) noexcept
constexpr void import (const ImportIndexingPolicy &policy, const InputIterator p, const InputIterator pe)
constexpr void fill (const ValueType2 &v)
constexpr void clamp (const ValueType2 &lower_bound, const ValueType3 &upper_bound)
constexpr void multiplyByScalar (const ValueType2 &s)
constexpr void divideByScalar (const ValueType2 &s)
TFEL_HOST_DEVICE constexpr ArrayPolicy::reference operator[] (const typename ArrayPolicy::IndexingPolicy::size_type) noexcept
 access operator
Public Member Functions inherited from tfel::math::ConstArrayCommonMethods< Child, ArrayPolicy >
constexpr ArrayPolicy::const_reference operator() (const Indices... i) const noexcept
TFEL_HOST_DEVICE constexpr ArrayPolicy::const_reference operator[] (const typename ArrayPolicy::IndexingPolicy::size_type) const noexcept
 access operator

Additional Inherited Members

Public Types inherited from tfel::math::ConstArrayCommonMethods< Child, ArrayPolicy >
using array_policy
 exposing the array policy
using indexing_policy
 exposing the indexing policy

Detailed Description

template<typename Child, typename ArrayPolicy>
struct tfel::math::MutableRuntimeArrayBase< Child, ArrayPolicy >

a base class for mutable arrays with runtime sizes.

Member Function Documentation

◆ getIndexingPolicy()

template<typename Child, typename ArrayPolicy>
const ArrayPolicy::IndexingPolicy & tfel::math::MutableRuntimeArrayBase< Child, ArrayPolicy >::getIndexingPolicy ( ) const
nodiscardconstexprnoexcept
Returns
the current indexing policy

◆ iterate()

template<typename Child, typename ArrayPolicy>
template<typename Functor>
void tfel::math::MutableRuntimeArrayBase< Child, ArrayPolicy >::iterate ( const Functor & f)

apply a multi-indices functor

Parameters
[in]ffunctor
Template Parameters
Functiontype of the functor

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