|
tfel
|
a base class for mutable fixed size arrays. More...
#include </home/runner/work/tfel/tfel/include/TFEL/Math/Array/MutableFixedSizeArrayBase.hxx>
Public Member Functions | |
| constexpr const auto & | getIndexingPolicy () const |
| template<typename Functor> | |
| TFEL_HOST_DEVICE constexpr void | iterate (const Functor &) |
| apply a multi-indices functor | |
| template<typename Functor> | |
| constexpr void | iterate (const Functor &f) |
| Public Member Functions inherited from tfel::math::MutableArrayCommonMethods< Child, ArrayPolicyType > | |
| TFEL_HOST_DEVICE constexpr ArrayPolicyType::reference | operator[] (const typename ArrayPolicyType::IndexingPolicy::size_type) noexcept |
| access operator | |
| TFEL_HOST_DEVICE constexpr ArrayPolicyType::reference | operator[] (const std::array< typename ArrayPolicyType::IndexingPolicy::size_type, ArrayPolicyType::IndexingPolicy::arity > &) noexcept |
| access operator | |
| template<typename... Indices> | |
| TFEL_HOST_DEVICE constexpr ArrayPolicyType::reference | operator() (const Indices...) noexcept |
| access operator | |
| TFEL_HOST_DEVICE constexpr ArrayPolicyType::reference | operator() (const std::array< typename ArrayPolicyType::IndexingPolicy::size_type, ArrayPolicyType::IndexingPolicy::arity > &) noexcept |
| access operator | |
| template<typename ValueType> requires ( isAssignableTo<ValueType, typename ArrayPolicyType::value_type>()) | |
| TFEL_HOST_DEVICE constexpr Child & | operator= (const std::initializer_list< ValueType > &) noexcept |
| assign values values from an initializer list | |
| template<typename ImportIndexingPolicy, typename InputIterator> | |
| TFEL_HOST_DEVICE constexpr void | import (const ImportIndexingPolicy &, const InputIterator, const InputIterator) |
| import array values from a sequence | |
| template<typename ValueType2> requires ( isAssignableTo<ValueType2, typename ArrayPolicyType::value_type>()) | |
| TFEL_HOST_DEVICE constexpr void | fill (const ValueType2 &) |
| fill the array with the given value | |
| template<typename ValueType2, typename ValueType3> requires ( isAssignableTo<ValueType2, typename ArrayPolicyType::value_type>() && isAssignableTo<ValueType3, typename ArrayPolicyType::value_type>()) | |
| TFEL_HOST_DEVICE constexpr void | clamp (const ValueType2 &, const ValueType3 &) |
| clamp all the values between the given bounds | |
| template<typename... Indices> | |
| constexpr ArrayPolicyType::reference | operator() (const Indices... i) noexcept |
| template<typename OtherArray> | |
| constexpr void | assign (const OtherArray &src) noexcept |
| template<typename OtherArray> | |
| constexpr void | addAndAssign (const OtherArray &src) noexcept |
| template<typename OtherArray> | |
| constexpr void | substractAndAssign (const OtherArray &src) noexcept |
|
template<typename ValueType> requires ( isAssignableTo<ValueType, typename ArrayPolicyType::value_type>()) | |
| constexpr Child & | operator= (const std::initializer_list< ValueType > &values) noexcept |
| template<typename ImportIndexingPolicy, typename InputIterator> | |
| constexpr void | import (const ImportIndexingPolicy &policy, const InputIterator p, const InputIterator pe) |
|
template<typename ValueType2> requires ( isAssignableTo<ValueType2, typename ArrayPolicyType::value_type>()) | |
| constexpr void | fill (const ValueType2 &v) |
|
template<typename ValueType2, typename ValueType3> requires ( isAssignableTo<ValueType2, typename ArrayPolicyType::value_type>() && isAssignableTo<ValueType3, typename ArrayPolicyType::value_type>()) | |
| constexpr void | clamp (const ValueType2 &lower_bound, const ValueType3 &upper_bound) |
|
template<typename ValueType2> requires (isAssignableTo< BinaryOperationResult<ValueType2, typename ArrayPolicyType::value_type, OpMult>, typename ArrayPolicyType::value_type>()) | |
| constexpr void | multiplyByScalar (const ValueType2 &s) |
|
template<typename ValueType2> requires (isAssignableTo< BinaryOperationResult<typename ArrayPolicyType::value_type, ValueType2, OpDiv>, typename ArrayPolicyType::value_type>()) | |
| constexpr void | divideByScalar (const ValueType2 &s) |
| Public Member Functions inherited from tfel::math::ConstArrayCommonMethods< Child, ArrayPolicyType > | |
| TFEL_HOST_DEVICE constexpr ArrayPolicyType::const_reference | operator[] (const typename ArrayPolicyType::IndexingPolicy::size_type) const noexcept |
| access operator | |
| TFEL_HOST_DEVICE constexpr ArrayPolicyType::const_reference | operator[] (const std::array< typename ArrayPolicyType::IndexingPolicy::size_type, ArrayPolicyType::IndexingPolicy::arity > &) const noexcept |
| access operator | |
| template<typename... Indices> | |
| TFEL_HOST_DEVICE constexpr ArrayPolicyType::const_reference | operator() (const Indices...) const noexcept |
| access operator | |
| TFEL_HOST_DEVICE constexpr ArrayPolicyType::const_reference | operator() (const std::array< typename ArrayPolicyType::IndexingPolicy::size_type, ArrayPolicyType::IndexingPolicy::arity > &) const noexcept |
| access operator | |
| template<typename... Indices> | |
| constexpr ArrayPolicyType::const_reference | operator() (const Indices... i) const noexcept |
Additional Inherited Members | |
| Public Types inherited from tfel::math::ConstArrayCommonMethods< Child, ArrayPolicyType > | |
| using | array_policy = ArrayPolicyType |
| exposing the array policy | |
| using | indexing_policy = typename ArrayPolicyType::IndexingPolicy |
| exposing the indexing policy | |
| Protected Member Functions inherited from tfel::math::MutableArrayCommonMethods< Child, ArrayPolicyType > | |
| template<typename OtherArray> | |
| TFEL_HOST_DEVICE constexpr void | assign (const OtherArray &) noexcept |
| assign the values of the given array to the values of this array. | |
| template<typename OtherArray> | |
| TFEL_HOST_DEVICE constexpr void | addAndAssign (const OtherArray &) noexcept |
| add the values of the given array to the values of this array. | |
| template<typename OtherArray> | |
| TFEL_HOST_DEVICE constexpr void | substractAndAssign (const OtherArray &) noexcept |
| substract the values of the given array to the values of this array. | |
| template<typename ValueType2> requires ( isAssignableTo< BinaryOperationResult<ValueType2, typename ArrayPolicyType::value_type, OpMult>, typename ArrayPolicyType::value_type>()) | |
| TFEL_HOST_DEVICE constexpr void | multiplyByScalar (const ValueType2 &) |
| multiplication by a scalar | |
| template<typename ValueType2> requires ( isAssignableTo< BinaryOperationResult<typename ArrayPolicyType::value_type, ValueType2, OpDiv>, typename ArrayPolicyType::value_type>()) | |
| TFEL_HOST_DEVICE constexpr void | divideByScalar (const ValueType2 &) |
| division by a scalar | |
a base class for mutable fixed size arrays.
|
nodiscardconstexpr |
|
constexpr |
apply a multi-indices functor
| [in] | f | functor |
| Function | type of the functor |