tfel
Loading...
Searching...
No Matches
tfel::math::Permutation< T > Struct Template Reference
Inheritance diagram for tfel::math::Permutation< T >:
tfel::math::vector< T > tfel::math::VectorConceptBase< T > tfel::math::GenericRuntimeArray< Child, ArrayPolicy > tfel::math::MutableRuntimeArrayBase< GenericRuntimeArray< Child, ArrayPolicy >, ArrayPolicy > tfel::math::MutableArrayCommonMethods< Child, ArrayPolicy > tfel::math::MutableArraySTLCompatibilityLayer< Child, ArrayPolicy > tfel::math::ConstArrayCommonMethods< Child, ArrayPolicy >

Public Member Functions

 Permutation (const Permutation &)=delete
 Permutation (Permutation &&)=delete
Permutation & operator= (Permutation &&)=delete
Permutation & operator= (const Permutation &)=delete
TFEL_MATH_INLINE Permutation (const typename vector< T >::size_type)
 default constructor
TFEL_MATH_INLINE void reset ()
 set this permutation vector to be equal to the identity
TFEL_MATH_INLINE void swap (const typename vector< T >::size_type, const typename vector< T >::size_type)
TFEL_MATH_INLINE bool isIdentity () const
void resize (const typename vector< T >::size_type)
 resize the permutation This automatically calls the reset method
 ~Permutation ()
 destructor

Additional Inherited Members

Protected Types inherited from tfel::math::vector< T >
using GenericRuntimeArrayBase
 a simple alias
Protected Types inherited from tfel::math::VectorConceptBase< T >
using ConceptTag = VectorTag
Protected Types inherited from tfel::math::GenericRuntimeArray< Child, ArrayPolicy >
using Container = std::vector<typename ArrayPolicy::value_type>
 a simple alias
using value_type
 a simple alias
Protected Types inherited from tfel::math::ConstArrayCommonMethods< Child, ArrayPolicy >
using array_policy
 exposing the array policy
using indexing_policy
 exposing the indexing policy
Protected Member Functions inherited from tfel::math::vector< T >
 TFEL_MATH_RUNTIME_ARRAY_DEFAULT_METHODS (vector, GenericRuntimeArrayBase)
 vector (const typename vector::size_type, const T &=T{})
 constructor
 vector (const InputIterator, const InputIterator)
void push_back (const T &)
void resize (const typename vector::size_type, const T &=T{})
 resize the array
void insert (const typename vector::const_iterator, const InputIterator, const InputIterator)
void swap (vector &)
 swap two vectors
void copy (const InputIterator, const InputIterator)
 ~vector () noexcept
 destructor
void resize (const typename RuntimeVectorArrayPolicy< T >::IndexingPolicy &)
 resize the array
Protected Member Functions inherited from tfel::math::GenericRuntimeArray< Child, ArrayPolicy >
GenericRuntimeArray & operator= (const GenericRuntimeArray &)
 assignement operator
GenericRuntimeArray & operator= (GenericRuntimeArray &&) noexcept
 move assigment
 GenericRuntimeArray ()=default
 default constructor
 GenericRuntimeArray (const typename ArrayPolicy::IndexingPolicy &)
 default constructor
 GenericRuntimeArray (const GenericRuntimeArray &)=default
 copy constructor
 GenericRuntimeArray (GenericRuntimeArray &&)=default
 move constructor
template<typename ValueType>
requires (isAssignableTo<ValueType, value_type>())
 GenericRuntimeArray (const typename ArrayPolicy::IndexingPolicy &, const ValueType &)
 constructor from a value
template<typename ValueType>
requires ((isAssignableTo<ValueType, value_type>()) && (ArrayPolicy::IndexingPolicy::arity == 1) && (ArrayPolicy::IndexingPolicy:: areDataContiguous))
 GenericRuntimeArray (const typename GenericRuntimeArray< Child, ArrayPolicy >::indexing_policy, const std::initializer_list< ValueType > &)
 constructor from an initializer list
template<typename ValueType>
requires ( (isAssignableTo<ValueType, value_type>()) && (ArrayPolicy::IndexingPolicy::arity == 1) && (ArrayPolicy::IndexingPolicy::areDataContiguous))
 GenericRuntimeArray (const std::initializer_list< ValueType > &)
 constructor from an initializer list
template<typename OtherArray>
requires ( (isAssignableTo<OtherArray, Child>()) && (!std::is_same_v<OtherArray, Child>))
 GenericRuntimeArray (const OtherArray &)
 copy constructor from an object assignable to the Child class.
GenericRuntimeArray< Child, ArrayPolicy >::pointer data () noexcept
GenericRuntimeArray< Child, ArrayPolicy >::const_pointer data () const noexcept
void resize (const typename ArrayPolicy::IndexingPolicy &)
 resize the array
GenericRuntimeArray< Child, ArrayPolicy >::size_type getContainerSize () const noexcept
template<typename OtherArray>
requires ( isAssignableTo<OtherArray, Child>())
Child & operator= (const OtherArray &)
 assign values values from an other array
template<typename OtherArray>
requires ( isAssignableTo<OtherArray, Child>())
Child & operator+= (const OtherArray &)
template<typename OtherArray>
requires ( isAssignableTo<OtherArray, Child>())
Child & operator-= (const OtherArray &)
template<typename ValueType2>
requires ( isAssignableTo<BinaryOperationResult<ValueType2, value_type, OpMult>, value_type>())
Child & operator*= (const ValueType2 &) noexcept
template<typename ValueType2>
requires ( isAssignableTo<BinaryOperationResult<value_type, ValueType2, OpDiv>, value_type>())
Child & operator/= (const ValueType2 &) noexcept
bool empty () const
void clear ()
void shrink_to_fit ()
Protected Member Functions inherited from tfel::math::MutableRuntimeArrayBase< GenericRuntimeArray< Child, ArrayPolicy >, ArrayPolicy >
 MutableRuntimeArrayBase ()=default
 default constructor
MutableRuntimeArrayBase & operator= (const MutableRuntimeArrayBase &)=default
 copy assignement
TFEL_HOST_DEVICE constexpr const ArrayPolicy::IndexingPolicy & getIndexingPolicy () const noexcept
void iterate (const Functor &)
 apply a multi-indices functor
Protected 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
Protected 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
Protected Attributes inherited from tfel::math::GenericRuntimeArray< Child, ArrayPolicy >
Container data_values
 values holded

Member Function Documentation

◆ isIdentity()

template<typename T>
bool tfel::math::Permutation< T >::isIdentity ( ) const
nodiscard
Returns
true is the permutation is the identity

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