this class describes a standart arithmetic array type implemented with a std::valarray object
More...
|
|
| OMP_PtrField () |
| | build an array of T*
|
| |
|
virtual | ~OMP_PtrField () |
| | destroy an array of T*
|
| |
| 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 values More...
|
| |
| Self & | operator= (std::initializer_list< T > &&values) |
| | build an array by a copy of values More...
|
| |
| template<size_t N, typename Q > |
| Self & | operator= (const std::array< Q, N > &values) |
| | build an array by a copy of values More...
|
| |
| template<typename Q > |
| Self & | operator= (const std::valarray< Q > &values) |
| | build an array by a copy of values More...
|
| |
| template<typename Q > |
| Self & | operator= (const std::vector< Q > &values) |
| | build an array by a copy of values More...
|
| |
| Self & | operator= (const Self &values) |
| | build an array by a copy of values More...
|
| |
| Self & | operator= (Self &&values) |
| | build an array by a copy of values More...
|
| |
| template<typename Q , class S1 , class I1 > |
| Self & | operator= (const CORE_Field< Q, K, D, S1, I1 > &values) |
| | build an array by a copy of values More...
|
| |
| template<typename Q , class S1 , class I1 > |
| Self & | operator= (CORE_Field< Q, K, D, S1, I1 > &&values) |
| | build an array by a copy of c More...
|
| |
| void | initialize (const T &a) |
| | copy at element elemnt the array of size D More...
|
| |
| template<typename Q > |
| void | initialize (const std::initializer_list< Q > &&a) |
| | copy at element elemnt the array of size D More...
|
| |
| template<typename Q > |
| void | initialize (const std::initializer_list< Q > &a) |
| | copy at element elemnt the array of size D More...
|
| |
| template<typename Q > |
| void | initialize (const std::array< Q, D > &a) |
| | copy at element elemnt the array of size D 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<class Q , class S , class I > |
| Self & | operator-= (const CORE_Field< Q, K, D, S, I > &X) |
| | array sub operator More...
|
| |
| template<class Q , class S , class I > |
| Self & | operator*= (const CORE_Field< Q, K, D, S, I > &X) |
| | array multiply operator More...
|
| |
| template<class Q , class S , class I > |
| Self & | operator/= (const CORE_Field< Q, K, D, S, I > &X) |
| | array divisor operator More...
|
| |
| template<typename LambdaFct > |
| void | elementsTransform (LambdaFct &&F) |
| | apply the transform element with the lambda function Xid = F(Xid) More...
|
| |
|
void | normalize () |
| | normalize all the elements of the field return false if the method is not compatible with the floating point type
|
| |
| template<class I > |
| void | mod2 (CORE_Array< T, I > &X) const |
| | return the norm2 array per each element More...
|
| |
| template<class Q , class S1 , class I1 > |
| T & | scalarProduct (const CORE_Field< Q, K, D, S1, I1 > &X, T &s) const |
| | return the weight scalar product More...
|
| |
| template<class Q , class S1 , class I1 > |
| T & | scalarProduct (const std::valarray< Q > &weights, const CORE_Field< Q, K, D, S1, I1 > &X, T &s) const |
| | return the weight scalar product More...
|
| |
| virtual tMemSize | getContentsMemorySize () const override |
| | return the memory size of the included associations More...
|
| |
| void | setElementsNumber (const tInteger &n) |
| | set the number of element of the container More...
|
| |
| void | fitToElementsNumber (const tInteger &n) |
| | set the number of element of the container without erasing values More...
|
| |
| tIndex | getElementsNumber () const |
| | return the number values of the container More...
|
| |
| void | setSize (const tIndex &n) |
| | set the number of values of the container More...
|
| |
| void | resize (const tIndex &n) |
| | set the number of values of the container More...
|
| |
| tIndex | getSize () const |
| | return the number values of the container More...
|
| |
| K | getDimension () const |
| | get the dimension of the field More...
|
| |
| const T & | operator[] (const tIndex &i) const |
| | get the i-th value for reading. More...
|
| |
| T & | operator[] (const tIndex &i) |
| | get the i-th value for writting. More...
|
| |
| const T & | operator() (const tInteger &i, const K &d) const |
| | get the i-th element for reading. Do not verify the bounds More...
|
| |
| T & | operator() (const tInteger &i, const K d) |
| | get the i-th element for writting. Do not verify the bounds More...
|
| |
| const T * | operator() (const tInteger &i) const |
| | get the i-th element for reading. Do not verify the bounds More...
|
| |
| T * | operator() (const tInteger &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...
|
| |
| auto | sbegin () |
| | return begin stride iterator for writing More...
|
| |
| auto | send () |
| | return end N-stride iterator for writing More...
|
| |
| constexpr auto | csbegin () const |
| | return begin N-stride const iterator for writing More...
|
| |
| constexpr auto | csend () const |
| | return end N-stride const iterator for writing More...
|
| |
| const T & | get (const tIndex &i, const K &d) const |
| | get the d-th coordinate of the i-th element for reading More...
|
| |
| T & | get (const tIndex &i, const K &d) |
| | get the d-th coordinate of 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...
|
| |
| const OMP_PtrArray< T > & | getStorage () const |
| | get the storage More...
|
| |
| OMP_PtrArray< T > & | getStorage () |
| | get the storage More...
|
| |
| Self & | operator= (const T &v) |
| | fill the values of the field with v More...
|
| |
| Self & | operator= (const std::initializer_list< T > &values) |
| | build an field by a copy of c More...
|
| |
| Self & | operator= (std::initializer_list< T > &&values) |
| | build an field by a copy of c More...
|
| |
| Self & | operator= (const std::array< Q, N > &values) |
| | build an field by a copy of c More...
|
| |
| Self & | operator= (const std::array< Q, D > &values) |
| | build an field by a copy of c More...
|
| |
| Self & | operator= (const std::valarray< Q > &values) |
| | build an field by a copy of c More...
|
| |
| Self & | operator= (const std::vector< Q > &values) |
| | build an field by a copy of c More...
|
| |
| Self & | operator= (const Self &cpy) |
| | build a field by a copy of cpy More...
|
| |
| Self & | operator= (Self &&cpy) |
| | build an field by a copy of cpy More...
|
| |
| Self & | operator= (const CORE_Field< Q, K, D, S1, I1 > &cpy) |
| | build a field by a copy of cpy More...
|
| |
| Self & | operator= (CORE_Field< Q, K, D, S1, I1 > &&cpy) |
| | build an field by a copy of cpy More...
|
| |
| void | copy (const tIndex &n, const Q *vs) |
| | initialize the field to the values of pointer of size n More...
|
| |
| void | copy (const std::array< Q, N > &vs) |
| | initialize the field at eche element with Vs More...
|
| |
| void | copy (const std::array< Q, D > &vs) |
| | initialize the field to the values of array of size D More...
|
| |
| void | copy (const std::valarray< Q > &vs) |
| | initialize the field to the values of val array More...
|
| |
| void | copy (std::valarray< Q > &&vs) |
| | initialize the field to the values of val array More...
|
| |
| void | copy (const std::vector< Q > &vs) |
| | initialize the field to the values of vector More...
|
| |
| void | copy (const std::initializer_list< T > &vs) |
| | initialize the field to the values of list More...
|
| |
| void | copy (std::initializer_list< T > &&vs) |
| | initialize the field to the values of list More...
|
| |
| void | copy (const CORE_Field< Q, K, D, S1, I1 > &cpy) |
| | copy the the field More...
|
| |
| void | copy (CORE_Field< Q, K, D, S1, I1 > &&cpy) |
| | copy the field : mv is destroyed after this More...
|
| |
| void | initialize (const T &v) |
| | initialize the field to v More...
|
| |
| void | initialize (const std::array< Q, D > &vs) |
| | initialize the field to the values of array of size D More...
|
| |
| void | setUniformRandomizeSeed (const tULLInt &seed) |
| | set the uniform randomize seed More...
|
| |
|
void | setUniformRandomizeSeed () |
| | set the uniform randomize seed
|
| |
| void | uniformRandomize (const T &min, const T &max) |
| | randomize the field More...
|
| |
| Self & | operator+= (const T &v) |
| | add operator More...
|
| |
| Self & | operator-= (const T &v) |
| | sub operator More...
|
| |
| Self & | operator-= (const CORE_Field< T1, K, D, S1, I1 > &v) |
| | array sub operator More...
|
| |
| Self & | operator*= (const T &v) |
| | multiplicator operator More...
|
| |
| Self & | operator*= (const CORE_Field< T1, K, D, S1, I1 > &v) |
| | array multiply operator More...
|
| |
| Self & | operator/= (const T &v) |
| | divisor operator More...
|
| |
| Self & | operator/= (const CORE_Field< T1, K, D, S1, I1 > &v) |
| | array divisor operator More...
|
| |
| Self & | operator%= (const T &v) requires functions_type |
| | modulo operator More...
|
| |
| void | transform (LambdaFct &&F) |
| | transform the transform element with the lambda function Ti = F(Ti) More...
|
| |
| void | transform (LambdaFct &&F, const Self &X) |
| | transform the transform element with the lambda function Ti = F(Xi) More...
|
| |
| void | transform (LambdaFct &&F, const Self &X, const Self &Y) |
| | transform the transform element with the lambda function Ti = F(Xi,Yi) More...
|
| |
| void | elementsTransform (LambdaFct &&F) |
| | apply the transform element with the lambda function Xid = F(Xid) More...
|
| |
| void | swap (CORE_Array< T, OMP_PtrField< T, K, D > > &a) |
| | swap the contents of the array More...
|
| |
| void | swap (CORE_Field< T, K, D, OMP_PtrArray< T >, OMP_PtrField< T, K, D > > &a) |
| | swap the contents of the array More...
|
| |
|
void | normalize () |
| | normalize all the elements of the field return false if the method is not compatible with the floating point type
|
| |
| void | axpy (const Q &alpha, const CORE_Field< Q, K, D, S1, 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 | mod2 (CORE_Array< T, I1 > &X) const |
| | return the norm2 array per each element More...
|
| |
| tReal | linfNorm (tIndex &i) const |
| | compute the L infinity norm More...
|
| |
| tReal | linfDistance (const CORE_Field< Q, K, D, OMP_PtrArray< T >, I1 > &X, tIndex &i) const |
| | compute the Linfinitty norm 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...
|
| |
| T & | scalarProduct (const CORE_Field< Q, K, D, S1, I1 > &X, T &s) const |
| | return the scalar product More...
|
| |
| T & | scalarProduct (const std::valarray< Q > &weights, const CORE_Field< Q, K, D, S1, I1 > &X, T &s) const |
| | return the scalar product More...
|
| |
| void | min (T &m) const requires functions_type |
| | return the min value of all the elements More...
|
| |
| tBoolean | loadFromFile (const tString &filename, tString &comment, tInt &retCode) |
| | load the field from a txt file with the format : More...
|
| |
| virtual tString | toString () const override |
| | return the string representation of the object node 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...
|
| |
| 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...
|
| |