tfel
Loading...
Searching...
No Matches
tfel::math::tvector< N, ValueType > Struct Template Reference

a class representing tiny vectors of fixed size. More...

Inheritance diagram for tfel::math::tvector< N, ValueType >:
tfel::math::VectorConceptBase< tvector< N, double > > tfel::math::GenericFixedSizeArray< tvector< N, double >, FixedSizeVectorPolicy< N, double > >

Public Types

using GenericFixedSizeArrayBase
 a simple alias
Public Types inherited from tfel::math::VectorConceptBase< tvector< N, double > >
using ConceptTag
Public Types inherited from tfel::math::GenericFixedSizeArray< tvector< N, double >, FixedSizeVectorPolicy< N, double > >
using value_type

Public Member Functions

 TFEL_MATH_FIXED_SIZE_ARRAY_DEFAULT_METHODS (tvector, GenericFixedSizeArrayBase)
TFEL_HOST_DEVICE tvector (const fsarray< N, ValueType > &) noexcept
 implicit conversion from an fsarray provided for backward compatibility.
template<typename InputIterator>
TFEL_HOST_DEVICE TFEL_MATH_INLINE constexpr void copy (const InputIterator src) noexcept
template<unsigned short I>
TFEL_HOST_DEVICE constexpr auto slice () noexcept
 create a slice
template<unsigned short I, unsigned short J>
TFEL_HOST_DEVICE constexpr auto slice () noexcept
 create a slice
template<unsigned short I>
TFEL_HOST_DEVICE constexpr auto slice () const noexcept
 create a slice (const version)
template<unsigned short I, unsigned short J>
TFEL_HOST_DEVICE constexpr auto slice () const noexcept
 create a slice (const version)
template<typename InputIterator>
TFEL_HOST_DEVICE constexpr void copy (const InputIterator src) noexcept
Public Member Functions inherited from tfel::math::GenericFixedSizeArray< tvector< N, double >, FixedSizeVectorPolicy< N, double > >
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray (const std::initializer_list< ValueType > &values) noexcept
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray< tvector< N, double >, FixedSizeVectorPolicy< N, double >, getArrayPolicySize< FixedSizeVectorPolicy< N, double > >() >::size_type getContainerSize () const noexcept
TFEL_HOST_DEVICE constexpr tvector< N, double > & operator= (const OtherArray &) noexcept
 assign values values from an other array
TFEL_HOST_DEVICE constexpr tvector< N, double > & operator+= (const OtherArray &) noexcept
TFEL_HOST_DEVICE constexpr tvector< N, double > & operator-= (const OtherArray &) noexcept
TFEL_HOST_DEVICE constexpr tvector< N, double > & operator*= (const ValueType2 &) noexcept
TFEL_HOST_DEVICE constexpr tvector< N, double > & operator/= (const ValueType2 &) noexcept
TFEL_HOST_DEVICE constexpr GenericFixedSizeArray< tvector< N, double >, FixedSizeVectorPolicy< N, double >, getArrayPolicySize< FixedSizeVectorPolicy< N, double > >() >::pointer data () noexcept

Additional Inherited Members

Static Public Member Functions inherited from tfel::math::GenericFixedSizeArray< tvector< N, double >, FixedSizeVectorPolicy< N, double > >
static TFEL_HOST_DEVICE constexpr tvector< N, double > zero ()
Protected Attributes inherited from tfel::math::GenericFixedSizeArray< tvector< N, double >, FixedSizeVectorPolicy< N, double > >
FixedSizeVectorPolicy< N, double >::value_type v [getArrayPolicySize< FixedSizeVectorPolicy< N, double > >()]
 values holded

Detailed Description

template<unsigned short N, typename ValueType = double>
struct tfel::math::tvector< N, ValueType >

a class representing tiny vectors of fixed size.

Template Parameters
Nsize of the tiny vector
Tvalue hold

Member Typedef Documentation

◆ GenericFixedSizeArrayBase

template<unsigned short N, typename ValueType = double>
using tfel::math::tvector< N, ValueType >::GenericFixedSizeArrayBase
Initial value:
GenericFixedSizeArray<tvector<N, ValueType>,
an array policy based on the fixed size vector indexing policy
Definition FixedSizeArrayPolicies.hxx:26

a simple alias

Constructor & Destructor Documentation

◆ tvector()

template<unsigned short N, typename ValueType = double>
TFEL_HOST_DEVICE tfel::math::tvector< N, T >::tvector ( const fsarray< N, ValueType > & )
noexcept

implicit conversion from an fsarray provided for backward compatibility.

Parameters
[in]srcobject to be copied

Member Function Documentation

◆ copy()

template<unsigned short N, typename ValueType = double>
template<typename InputIterator>
TFEL_HOST_DEVICE TFEL_MATH_INLINE constexpr void tfel::math::tvector< N, ValueType >::copy ( const InputIterator src)
constexprnoexcept

copy the Nth elements following this argument.

Parameters
constInputIterator, an iterator to the first element to be copied.

◆ slice() [1/4]

template<unsigned short N, typename T>
template<unsigned short I, unsigned short J>
TFEL_HOST_DEVICE constexpr auto tfel::math::tvector< N, T >::slice ( ) const
constexprnoexcept

create a slice (const version)

Parameters
[in]I: the starting index
[in]J: the size of the slice
Note
: the slice object contains a reference to the source vector, so this vector shall not be destroyed before the slice

◆ slice() [2/4]

template<unsigned short N, typename T>
template<unsigned short I>
TFEL_HOST_DEVICE constexpr auto tfel::math::tvector< N, T >::slice ( ) const
constexprnoexcept

create a slice (const version)

Parameters
[in]I: the starting index
Note
: the slice object contains a reference to the source vector, so this vector shall not be destroyed before the slice

◆ slice() [3/4]

template<unsigned short N, typename T>
template<unsigned short I, unsigned short J>
TFEL_HOST_DEVICE constexpr auto tfel::math::tvector< N, T >::slice ( )
constexprnoexcept

create a slice

Parameters
[in]I: the starting index
[in]J: the size of the slice
Note
: the slice object contains a reference to the source vector, so this vector shall not be destroyed before the slice

◆ slice() [4/4]

template<unsigned short N, typename T>
template<unsigned short I>
TFEL_HOST_DEVICE constexpr auto tfel::math::tvector< N, T >::slice ( )
constexprnoexcept

create a slice

Parameters
[in]I: the starting index

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