this class describes a standart arithmetic array type implemented with a std::valarray object of type T _param T : type of the values of the array
More...
|
|
| CORE_StdValArray () |
| | build an instance of class
|
| |
| | CORE_StdValArray (const tIndex &n) |
| | build an instance of class of size n More...
|
| |
|
virtual | ~CORE_StdValArray () |
| | destroy an instance of class
|
| |
| virtual tMemSize | getMemorySize () const override |
| | return the memory size of the class More...
|
| |
| Self & | operator= (const T &v) |
| | fill the values of the array with v More...
|
| |
| Self & | operator= (const std::initializer_list< T > &values) |
| | build an array by a copy of c More...
|
| |
| Self & | operator= (std::initializer_list< T > &&values) |
| | build an array by a copy of c More...
|
| |
| template<size_t N, typename Q > |
| Self & | operator= (const std::array< Q, N > &values) |
| | build an array by a copy of c More...
|
| |
| template<typename Q > |
| Self & | operator= (const std::valarray< Q > &values) |
| | build an array by a copy of c More...
|
| |
| template<typename Q > |
| Self & | operator= (const std::vector< Q > &values) |
| | build an array by a copy of c More...
|
| |
| Self & | operator= (const Self &values) |
| | build an array by a copy of c More...
|
| |
| Self & | operator= (const Self &&values) |
| | build an array by a copy of c (in mirror with the copy operator) More...
|
| |
| template<typename Q , class I1 > |
| Self & | operator= (const CORE_Array< Q, I1 > &values) |
| | build an array by a copy of c More...
|
| |
| template<typename Q , class I1 > |
| Self & | operator= (const CORE_Array< Q, I1 > &&values) |
| | build an array by a copy of c (in mirror with the copy operator) More...
|
| |
| template<typename Q , class I > |
| void | copy (const CORE_Array< Q, I > &X) |
| | copy the array More...
|
| |
| template<typename Q , class I > |
| void | copy (CORE_Array< Q, I > &&X) |
| | copy the array More...
|
| |
| template<typename Q , class I > |
| void | copy (const CORE_ValArray< Q, I > &cpy) |
| | copy the container More...
|
| |
| template<typename Q , class I > |
| void | copy (CORE_ValArray< Q, I > &&cpy) |
| | copy the conatiner : mv is destroyed after this More...
|
| |
| void | copy (const Self &cpy) |
| | copy the container More...
|
| |
| void | copy (Self &&cpy) |
| | copy the conatiner : mv is destroyed after this More...
|
| |
| template<typename Q > |
| void | copy (const tIndex &n, const Q *Vs) |
| | initialize the array to the values of pointer of size n More...
|
| |
| void | copy (const tIndex &n, const std::initializer_list< T > &Vs) |
| | initialize the array to the values of list More...
|
| |
| void | copy (const tIndex &n, std::initializer_list< T > &&Vs) |
| | initialize the array to the values of list More...
|
| |
| template<typename Q , size_t N> |
| void | copy (const tIndex &n, const std::array< Q, N > &Vs) |
| | initialize the array to the values of array of size N More...
|
| |
| template<typename Q > |
| void | copy (const tIndex &n, const std::valarray< Q > &Vs) |
| | initialize the array to the values of val array More...
|
| |
| template<typename Q > |
| void | copy (const tIndex &n, const std::vector< Q > &Vs) |
| | initialize the array to the values of vector More...
|
| |
| void | initialize (const T &x) |
| | initialize the array to the value x More...
|
| |
| void | uniformRandomize (const T &min, const T &max) |
| | randomize the vector in [min,max] More...
|
| |
| Self & | operator+= (const T &v) |
| | add operator More...
|
| |
| Self & | operator-= (const T &v) |
| | sub operator More...
|
| |
| Self & | operator*= (const T &v) |
| | multiplicator operator More...
|
| |
| Self & | operator/= (const T &v) |
| | divisor operator More...
|
| |
| Self & | operator%= (const T &v) requires functions_type |
| | modulo operator More...
|
| |
| template<typename Q , class I > |
| Self & | operator-= (const CORE_Array< Q, I > &X) |
| | array sub operator This -=X More...
|
| |
| template<typename Q , class I > |
| Self & | operator*= (const CORE_Array< Q, I > &X) |
| | array multiply operator This *=X More...
|
| |
| template<typename Q , class I > |
| Self & | operator/= (const CORE_Array< Q, I > &X) |
| | array divisor operator This /=X More...
|
| |
| Self & | operator+= (const Self &X) |
| | array add operator : This +=X More...
|
| |
| Self & | operator-= (const Self &X) |
| | array add operator : This -=X More...
|
| |
| Self & | operator*= (const Self &X) |
| | array add operator : This *=X More...
|
| |
| Self & | operator/= (const Self &X) |
| | array add operator : This /=X More...
|
| |
| template<typename LambdaFct > |
| void | transform (LambdaFct &&F) |
| | transform the transform element with the lambda function Ti = F(const Ti) More...
|
| |
| template<typename LambdaFct > |
| void | transform (LambdaFct &&F, const CORE_Array< T, Self > &X) |
| | transform the transform element with the lambda function Ti = F(const Xi) More...
|
| |
| template<typename LambdaFct > |
| void | transform (LambdaFct &&F, const CORE_Array< T, Self > &X, const CORE_Array< T, Self > &Y) |
| | transform the transform element with the lambda function Ti = F(const Xi,const Yi) More...
|
| |
|
void | normalize () |
| | normalize the array
|
| |
| template<typename Q , class I > |
| void | axpy (const Q &alpha, const CORE_Array< Q, I > &X, const T &beta) |
| | compute This=beta.This+ alpha .X More...
|
| |
| template<typename Q , class I > |
| void | AXPY (const Q &alpha, const CORE_Array< Q, I > &X, const T &beta, Self &Y) |
| | compute Y=beta.Y+ alpha .X More...
|
| |
| tBoolean | isNANContained () const |
| | return true if one value is Not A Number More...
|
| |
| void | sum (T &s) const |
| | return the sum of all the elements More...
|
| |
| void | prod (T &p) const |
| | return the product of all the elements More...
|
| |
| template<typename Q , class I > |
| T & | scalarProduct (const CORE_Array< Q, I > &X, T &s) const |
| | return the scalar product More...
|
| |
| tReal | l2Norm2 () const |
| | computes the L2-Norm of this More...
|
| |
| template<typename Q , class I > |
| tReal | l2Distance2 (const CORE_Array< Q, I > &X) const |
| | compute the square of distance of this to X More...
|
| |
| tReal | linfDistance (tIndex &imax) const |
| | compute the L infinity norm of This More...
|
| |
| template<typename Q , class I > |
| tReal | linfDistance (const CORE_Array< Q, I > &X, tIndex &imax) const |
| | compute the L infinity distance of this to X More...
|
| |
|
| CORE_ValArray () |
| | build an array of T*
|
| |
| | CORE_ValArray (const tIndex &n) |
| | build an array of size n More...
|
| |
|
virtual | ~CORE_ValArray () |
| | destroy an instance of this
|
| |
| virtual tMemSize | getContentsMemorySize () const override |
| | return the memory size of the included associations More...
|
| |
| void | setSize (const tIndex &n) |
| | set the number of values More...
|
| |
| tIndex | getSize () const |
| | return the size of the array for writing More...
|
| |
|
void | resize (const tIndex &n) |
| | modify the size of the array and keep its old values
|
| |
| const T & | operator[] (const tIndex &i) const |
| | get the i-th element for reading. Do not verify the bounds More...
|
| |
| T & | operator[] (const tIndex &i) |
| | get the i-th element for writting. Do not verify the bounds More...
|
| |
| constexpr auto | cbegin () const |
| | return begin iterator for reading More...
|
| |
| constexpr auto | cend () const |
| | return end iterator for reading More...
|
| |
| auto | begin () |
| | return begin iterator for writing More...
|
| |
| auto | end () |
| | return end iterator for writing More...
|
| |
| auto | rbegin () |
| | return reverse begin iterator for writing More...
|
| |
| auto | rend () |
| | return reverse end iterator for writing More...
|
| |
| constexpr auto | crbegin () const |
| | return reverse begin iterator for reading More...
|
| |
| constexpr auto | crend () const |
| | return reverse end iterator for reading More...
|
| |
| std::valarray< T > & | getArray () |
| | get the array More...
|
| |
| const std::valarray< T > & | getArray () const |
| | get the array for reading More...
|
| |
| const T * | getValues () const |
| | get the values of the array for reading More...
|
| |
| T * | getValues () |
| | get the values of the array More...
|
| |
| void | swap (CORE_ValArray< T, CORE_StdValArray< T > > &a) |
| | swap the contents of the array More...
|
| |
| void | swap (const tIndex &i, const tIndex &j) |
| | swap the 2 elements of the array More...
|
| |
| template<int N> |
| auto | sbegin () |
| | return begin stride iterator for writing More...
|
| |
| template<int N> |
| auto | send () |
| | return end N-stride iterator for writing More...
|
| |
| template<int N> |
| constexpr auto | csbegin () const |
| | return begin N-stride const iterator for writing More...
|
| |
| template<int N> |
| constexpr auto | csend () const |
| | return end N-stride const iterator for writing More...
|
| |
| const T & | get (const tIndex &i) const |
| | get the i-th element for reading More...
|
| |
| T & | get (const tIndex &i) |
| | get the i-th element for writting More...
|
| |
| const T * | getValues () const |
| | get the values of the array for reading More...
|
| |
| T * | getValues () |
| | get the values of the array More...
|
| |
| Self & | operator= (const T &v) |
| | fill the values of the array with v More...
|
| |
| Self & | operator= (std::initializer_list< T > values) |
| | build an array by a copy of c More...
|
| |
| template<size_t N, typename Q > |
| Self & | operator= (const std::array< Q, N > &values) |
| | build an array by a copy of c More...
|
| |
| template<typename Q > |
| Self & | operator= (const std::valarray< Q > &values) |
| | build an array by a copy of c More...
|
| |
| template<typename Q > |
| Self & | operator= (const std::vector< Q > &values) |
| | build an array by a copy of c More...
|
| |
| template<typename Q , class I1 > |
| Self & | operator= (const CORE_Array< Q, I1 > &cpy) |
| | build an array by a copy of cpy More...
|
| |
| Self & | operator= (const Self &cpy) |
| | build an array by a copy of cpy More...
|
| |
| template<typename Q , class I1 > |
| Self & | operator= (CORE_Array< Q, I1 > &&cpy) |
| | build an array by a copy of cpy More...
|
| |
| Self & | operator= (Self &&cpy) |
| | build an array by a copy of cpy More...
|
| |
| template<typename Q > |
| void | copy (const tIndex &n, const Q *vs) |
| | initialize the array to the values of pointer of size n More...
|
| |
| template<typename Q , size_t N> |
| void | copy (const tIndex &n, const std::array< Q, N > &vs) |
| | initialize the array to the values of array of size N More...
|
| |
| template<typename Q > |
| void | copy (const tIndex &n, const std::valarray< Q > &vs) |
| | initialize the array to the values of val array More...
|
| |
| template<typename Q > |
| void | copy (const tIndex &n, const std::vector< Q > &vs) |
| | initialize the array to the values of vector More...
|
| |
| void | copy (const tIndex &n, const std::initializer_list< T > &vs) |
| | initialize the array to the values of list More...
|
| |
| void | copy (const tIndex &n, std::initializer_list< T > &&vs) |
| | initialize the array to the values of list More...
|
| |
| template<typename Q , class I1 > |
| void | copy (const CORE_Array< Q, I1 > &cpy) |
| | copy the container More...
|
| |
| template<typename Q , class I1 > |
| void | copy (CORE_Array< Q, I1 > &&cpy) |
| | copy the conatiner : mv is destroyed after this More...
|
| |
|
void | initialize (const T &v) |
| | randomize the field
|
| |
| virtual void | setUniformRandomizeSeed (const tULLInt &seed) |
| | set the uniform randomize seed More...
|
| |
|
void | setUniformRandomizeSeed () |
| | set the uniform randomize seed
|
| |
|
void | uniformRandomize () |
| | randomize the field
|
| |
|
void | uniformRandomize (const T &min, const T &max) |
| | randomize the field
|
| |
| I & | operator+= (const T &v) |
| | add operator More...
|
| |
| I & | operator-= (const T &v) |
| | sub operator More...
|
| |
| I & | operator*= (const T &v) |
| | multiplicator operator More...
|
| |
| I & | operator/= (const T &v) |
| | divisor operator More...
|
| |
| I & | operator%= (const T &v) requires functions_type |
| | modulo operator More...
|
| |
| template<typename Q , class I1 > |
| I & | operator-= (const CORE_Array< Q, I1 > &v) |
| | array sub operator More...
|
| |
| template<typename Q , class I1 > |
| I & | operator*= (const CORE_Array< Q, I1 > &v) |
| | array multiply operator More...
|
| |
| template<typename Q , class I1 > |
| I & | operator/= (const CORE_Array< Q, I1 > &v) |
| | array divisor operator More...
|
| |
| template<typename LambdaFct > |
| void | transform (LambdaFct &&F) |
| | transform the transform element with the lambda function Ti = F(Ti) More...
|
| |
| template<typename LambdaFct > |
| void | transform (LambdaFct &&F, const Self &X) |
| | transform the transform element with the lambda function Ti = F(Xi) More...
|
| |
| template<typename LambdaFct > |
| void | transform (LambdaFct &&F, const Self &X, const Self &Y) |
| | transform the transform element with the lambda function Ti = F(Xi,Yi) More...
|
| |
| void | swap (Self &a) |
| | swap the contents of the array More...
|
| |
| void | swap (const tIndex &i, const tIndex &j) |
| | swap the two elements of the array More...
|
| |
|
void | normalize () |
| | normalize the array
|
| |
| template<typename Q , class I1 > |
| void | axpy (const Q &alpha, const CORE_Array< Q, I1 > &X, const T &beta) |
| | compute This=beta.This+ alpha .X More...
|
| |
| tBoolean | isNANContained () const |
| | return true if one value is Not A Number More...
|
| |
| void | sum (T &s) const |
| | Computes the sum of all the elements. More...
|
| |
| void | prod (T &p) const |
| | return the produc of all the elements More...
|
| |
| template<typename Q , class I1 > |
| T & | scalarProduct (const CORE_Array< Q, I1 > &X, T &s) const |
| | return the scalar product More...
|
| |
| tReal | l2Norm2 () const |
| | compute the L2 norm squared More...
|
| |
| tReal | l2Norm () const |
| | compute the L2 norm More...
|
| |
| template<typename Q , class I1 > |
| tReal | l2Distance2 (const CORE_Array< Q, I1 > &X) const |
| | compute the L2 distance squared More...
|
| |
| template<typename Q , class I1 > |
| tReal | l2Distance (const CORE_Array< Q, I1 > &X) const |
| | compute the L2 distance More...
|
| |
| tReal | linfNorm (tIndex &i) const |
| | compute the L infinity norm More...
|
| |
| template<typename Q , class I1 > |
| tReal | linfDistance (const CORE_Array< Q, I1 > &X, tIndex &i) const |
| | compute the Linfinitty norm More...
|
| |
| void | setSize (const tIndex &n) |
| | set the size of the container More...
|
| |
| tIndex | getSize () const |
| | return the size of the container More...
|
| |
|
void | resize (const tIndex &n) |
| | modify the size of the array and keep its old values
|
| |
| const T & | operator[] (const tIndex &i) const |
| | get the i-th element for reading. Do not verify the bounds More...
|
| |
| T & | operator[] (const tIndex &i) |
| | get the i-th element for writting. Do not verify the bounds More...
|
| |
| constexpr auto | cbegin () const |
| | return begin iterator for reading More...
|
| |
| constexpr auto | cend () const |
| | return end iterator for reading More...
|
| |
| auto | begin () |
| | return begin iterator for writing More...
|
| |
| auto | end () |
| | return end iterator for writing More...
|
| |
| auto | rbegin () |
| | return reverse begin iterator for writing More...
|
| |
| auto | rend () |
| | return reverse end iterator for writing More...
|
| |
| constexpr auto | crbegin () const |
| | return reverse begin iterator for reading More...
|
| |
| constexpr auto | crend () const |
| | return reverse end iterator for reading More...
|
| |
| template<typename LambdaFct > |
| void | transform (LambdaFct &&F) |
| | transform the transform element with the lambda function Ti = F(Ti) More...
|
| |
| tString | getDataTypeName () const |
| | get the type of data More...
|
| |
| virtual tString | toString () const override |
| | return the string representation of the object node More...
|
| |
| template<class T > |
| std::shared_ptr< T > | getSharedPointer () |
| | return the shared pointer for this More...
|
| |
| template<class T > |
| std::shared_ptr< const T > | getConstSharedPointer () const |
| | return a const shared pointer for this More...
|
| |
| template<class T > |
| tBoolean | isInstanceOf () const |
| | test if the clas T is an instance of this class More...
|
| |
| tString | getClassName () const |
| | return the name of the class More...
|
| |
| tString | getPointerString () const |
| | retrun the pointer of the class as a string More...
|
| |
| tString | getIdentityString () const |
| | retrun the string identification of the class More...
|
| |