this class describes a standart arithmetic array type implemented with a std::valarray object of type T parallelize with openmp module
More...
|
|
| OMP_ValArray () |
| | build an instance of class
|
| |
| | OMP_ValArray (const tIndex &n) |
| | build an instance of class of size n More...
|
| |
|
virtual | ~OMP_ValArray () |
| | 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> |
| Self & | operator= (const std::array< T, N > &values) |
| | build an array by a copy of c More...
|
| |
| Self & | operator= (const std::valarray< T > &values) |
| | build an array by a copy of c More...
|
| |
| Self & | operator= (const std::vector< T > &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= (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 > &X) |
| | copy the container More...
|
| |
| template<typename Q , class I > |
| void | copy (CORE_ValArray< Q, I > &&X) |
| | 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 | Initialize (const T &x, std::valarray< T > &values) |
| | initialize the array to the value x More...
|
| |
| void | uniformRandomize (const T &min, const T &max) |
| | randomize the vector in [min,max] More...
|
| |
| OMP_ValArray< T > & | operator+= (const T &v) |
| | add operator More...
|
| |
| OMP_ValArray< T > & | operator-= (const T &v) |
| | sub operator More...
|
| |
| OMP_ValArray< T > & | operator*= (const T &v) |
| | multiplicator operator More...
|
| |
| OMP_ValArray< T > & | 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 More...
|
| |
| template<typename Q , class I > |
| Self & | operator*= (const CORE_Array< Q, I > &X) |
| | array multiply operator More...
|
| |
| template<typename Q , class I > |
| Self & | operator/= (const CORE_Array< Q, I > &X) |
| | array divisor operator More...
|
| |
| template<typename LambdaFct > |
| void | transform (LambdaFct &&F) |
| | transform the transform element in parallel to 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 in parallel to 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...
|
| |
| T | norm2 () const |
| | compute the norm 2 of the array 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...
|
| |
| tBoolean | isNANContained () const |
| | return true if one value is Not A Number More...
|
| |
| template<typename Q , class I > |
| T & | scalarProduct (const CORE_Array< Q, I > &X, T &s) const |
| | return the scalar product More...
|
| |
| void | sum (T &s) const |
| | return the sum of all the elements More...
|
| |
| void | prod (T &p) const |
| | return the produc of all the elements More...
|
| |
| tReal | l2Norm2 () const |
| | compute the square of L2-norm of this More...
|
| |
| template<typename Q , class I > |
| tReal | l2Distance2 (const CORE_Array< Q, I > &X) const |
| | compute the square of L2-distance of this to X More...
|
| |
| tReal | linfNorm (tIndex &imax) const |
| | compute the Linf-norm of this More...
|
| |
| template<typename Q , class I > |
| tReal | linfDistance (const CORE_Array< Q, I > &X, tIndex &imax) const |
| | compute the square of L2-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, OMP_ValArray< 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...
|
| |
|
| static CORE_UniquePointer< Self > | New () |
| | return a unique pointer of the class More...
|
| |
| template<typename Q , class I > |
| static void | Copy (const CORE_Array< Q, I > &X, std::valarray< T > &R) |
| | copy 2 std::valarray with different type More...
|
| |
| template<typename Q > |
| static void | Copy (const std::valarray< Q > &X, std::valarray< T > &R) |
| | copy 2 std::valarray with different type More...
|
| |
| template<typename Q > |
| static void | Copy (const std::valarray< T > &X, std::valarray< T > &R) |
| | copy 2 std::valarray with same type : no parallelization : faster with the intrinsect method More...
|
| |
| template<typename Q > |
| static void | Copy (const tIndex &n, const std::valarray< Q > &X, std::valarray< T > &R) |
| | copy the the n first values of a valarray More...
|
| |
| template<typename Q > |
| static void | Copy (const tIndex &n, const std::vector< Q > &X, std::valarray< T > &R) |
| | copy the the n first values of an initializer More...
|
| |
| static void | Copy (const tIndex &n, const std::initializer_list< T > &X, std::valarray< T > &R) |
| | copy the the n first values of an initializer More...
|
| |
| static void | Copy (const tIndex &n, std::initializer_list< T > &&X, std::valarray< T > &R) |
| | copy the the n first values of an initializer More...
|
| |
| template<typename Q > |
| requires static functions_type::isArithmeticType< Q > void | Copy (const tIndex &n, const Q *X, std::valarray< T > &R) |
| | copy the n values of a pointers array More...
|
| |
| static void | UniformRandomize (const T &min, const T &max, std::valarray< T > &values) |
| | generate a random val array More...
|
| |
| template<typename LambdaFct > |
| static void | Transform (LambdaFct &&F, Self &X) |
| | transform the transform element with the lambda function Xi = F(const Xi) More...
|
| |
| template<typename LambdaFct > |
| static void | Transform (LambdaFct &&F, const CORE_Array< T, Self > &X, Self &R) |
| | transform the transform element with the lambda function Ri = F(const Xi) More...
|
| |
| template<typename LambdaFct > |
| static void | Transform (LambdaFct &&F, const CORE_Array< T, Self > &X, const CORE_Array< T, Self > &Y, Self &R) |
| | transform the transform element with the lambda function Ri = F(const Xi,const Yi) More...
|
| |
| template<typename Q > |
| static tReal | L2Distance2 (const tIndex &nX, const Q *Xs, const std::valarray< T > &Y) |
| | compute the square of L2 distance of X to Y More...
|
| |
| template<typename Q > |
| static tReal | LinfDistance (const tIndex &nX, const Q *Xs, const std::valarray< T > &Y, tIndex &imax) |
| | compute the index of the array where the module of the difference between X & Y is max More...
|
| |
| static tBoolean | EnableMemoryStack (const tBoolean &isMemoryChecked) |
| | enable the memory stack More...
|
| |
|
static void | EnableMemoryStack () |
| | enable the memory stack
|
| |
|
static void | DisableMemoryStack () |
| | disable the memory stack
|
| |
|
static tBoolean | IsMemoryStackEnabled () |
| | return trur if the memory stack is enabled
|
| |
| static tString | MemoryStackToString () |
| | get the memory stack in string More...
|
| |
| static tIndex | GetRegisteredClassesNumber () |
| | get the memory stack in string More...
|
| |