tfel
Loading...
Searching...
No Matches
tfel::math::vector< ValueType > Class Template Reference

A class representing dynamically allocated vector. More...

#include </home/runner/work/tfel/tfel/include/TFEL/Math/Forward/vector.hxx>

Inheritance diagram for tfel::math::vector< ValueType >:
tfel::math::VectorConceptBase< vector< ValueType > > tfel::math::GenericRuntimeArray< vector< ValueType >, RuntimeVectorArrayPolicy< ValueType > > tfel::math::MutableRuntimeArrayBase< GenericRuntimeArray< vector< ValueType >, RuntimeVectorArrayPolicy< ValueType > >, RuntimeVectorArrayPolicy< ValueType > > tfel::math::MutableArrayCommonMethods< GenericRuntimeArray< vector< ValueType >, RuntimeVectorArrayPolicy< ValueType > >, RuntimeVectorArrayPolicy< ValueType > > tfel::math::MutableArraySTLCompatibilityLayer< GenericRuntimeArray< vector< ValueType >, RuntimeVectorArrayPolicy< ValueType > >, RuntimeVectorArrayPolicy< ValueType > > tfel::math::ConstArrayCommonMethods< GenericRuntimeArray< vector< ValueType >, RuntimeVectorArrayPolicy< ValueType > >, RuntimeVectorArrayPolicy< ValueType > >

Public Types

using GenericRuntimeArrayBase
 a simple alias
Public Types inherited from tfel::math::VectorConceptBase< vector< ValueType > >
using ConceptTag
Public Types inherited from tfel::math::GenericRuntimeArray< vector< ValueType >, RuntimeVectorArrayPolicy< ValueType > >
using Container
 a simple alias
using value_type
 a simple alias
Public Types inherited from tfel::math::ConstArrayCommonMethods< GenericRuntimeArray< vector< ValueType >, RuntimeVectorArrayPolicy< ValueType > >, RuntimeVectorArrayPolicy< ValueType > >
using array_policy
 exposing the array policy
using indexing_policy
 exposing the indexing policy

Public Member Functions

 TFEL_MATH_RUNTIME_ARRAY_DEFAULT_METHODS (vector, GenericRuntimeArrayBase)
 vector (const typename vector::size_type, const ValueType &=ValueType{})
 constructor
template<typename InputIterator>
 vector (const InputIterator, const InputIterator)
void push_back (const ValueType &)
void resize (const typename vector::size_type, const ValueType &=ValueType{})
 resize the array
template<typename InputIterator>
void insert (const typename vector::const_iterator, const InputIterator, const InputIterator)
void swap (vector &)
 swap two vectors
template<typename InputIterator>
void copy (const InputIterator, const InputIterator)
 ~vector () noexcept
 destructor
void resize (const typename RuntimeVectorArrayPolicy< ValueType >::IndexingPolicy &)
 resize the array
Public Member Functions inherited from tfel::math::GenericRuntimeArray< vector< ValueType >, RuntimeVectorArrayPolicy< ValueType > >
 GenericRuntimeArray ()=default
 default constructor
GenericRuntimeArray< vector< ValueType >, RuntimeVectorArrayPolicy< ValueType > >::pointer data () noexcept
void resize (const typename RuntimeVectorArrayPolicy< ValueType >::IndexingPolicy &)
 resize the array
GenericRuntimeArray< vector< ValueType >, RuntimeVectorArrayPolicy< ValueType > >::size_type getContainerSize () const noexcept
vector< ValueType > & operator= (const OtherArray &)
 assign values values from an other array
vector< ValueType > & operator+= (const OtherArray &)
vector< ValueType > & operator-= (const OtherArray &)
vector< ValueType > & operator*= (const ValueType2 &) noexcept
vector< ValueType > & operator/= (const ValueType2 &) noexcept
bool empty () const
void clear ()
void shrink_to_fit ()
Public Member Functions inherited from tfel::math::MutableRuntimeArrayBase< GenericRuntimeArray< vector< ValueType >, RuntimeVectorArrayPolicy< ValueType > >, RuntimeVectorArrayPolicy< ValueType > >
 MutableRuntimeArrayBase ()=default
 default constructor
MutableRuntimeArrayBase & operator= (const MutableRuntimeArrayBase &)=default
 copy assignement
TFEL_HOST_DEVICE constexpr const RuntimeVectorArrayPolicy< ValueType >::IndexingPolicy & getIndexingPolicy () const noexcept
void iterate (const Functor &)
 apply a multi-indices functor
Public Member Functions inherited from tfel::math::MutableArrayCommonMethods< GenericRuntimeArray< vector< ValueType >, RuntimeVectorArrayPolicy< ValueType > >, RuntimeVectorArrayPolicy< ValueType > >
constexpr RuntimeVectorArrayPolicy< ValueType >::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 GenericRuntimeArray< vector< ValueType >, RuntimeVectorArrayPolicy< ValueType > > & 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 RuntimeVectorArrayPolicy< ValueType >::reference operator[] (const typename RuntimeVectorArrayPolicy< ValueType >::IndexingPolicy::size_type) noexcept
 access operator
Public Member Functions inherited from tfel::math::ConstArrayCommonMethods< GenericRuntimeArray< vector< ValueType >, RuntimeVectorArrayPolicy< ValueType > >, RuntimeVectorArrayPolicy< ValueType > >
constexpr RuntimeVectorArrayPolicy< ValueType >::const_reference operator() (const Indices... i) const noexcept
TFEL_HOST_DEVICE constexpr RuntimeVectorArrayPolicy< ValueType >::const_reference operator[] (const typename RuntimeVectorArrayPolicy< ValueType >::IndexingPolicy::size_type) const noexcept
 access operator

Additional Inherited Members

Protected Attributes inherited from tfel::math::GenericRuntimeArray< vector< ValueType >, RuntimeVectorArrayPolicy< ValueType > >
Container data_values
 values holded

Detailed Description

template<typename ValueType>
class tfel::math::vector< ValueType >

A class representing dynamically allocated vector.

Template Parameters
Tthe underlying numerical type.
Author
Thomas Helfer
Date
04/04/2007

Member Typedef Documentation

◆ GenericRuntimeArrayBase

template<typename ValueType>
using tfel::math::vector< ValueType >::GenericRuntimeArrayBase

Member Function Documentation

◆ copy()

template<typename ValueType>
template<typename InputIterator>
void tfel::math::vector< ValueType >::copy ( const InputIterator b,
const InputIterator e )

copy all the elements between two iterators at the beginning of the vector.

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

◆ swap()

template<typename ValueType>
void tfel::math::vector< ValueType >::swap ( vector< ValueType > & v)

swap two vectors

Parameters
[in,out]theother vector

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