Interface used for column double Array. More...
#include <IArray.hpp>
Public Member Functions | |
| virtual | ~IArray () |
| virtual void | Create ()=0 |
| Matrix create call. Last call to complete the matrix structure. | |
| virtual void | Destroy ()=0 |
| virtual void | SetSize (const unsigned int &numCols)=0 |
| Set the size the Array. Resize a Array for Eigen application. | |
| virtual void | SetSizes (const unsigned int &numCols, const unsigned int &numLocalCols)=0 |
| Set the size the Array. Resize a Array for Eigen application. | |
| virtual unsigned int | Size () const =0 |
| virtual const double * | Data () const =0 |
| virtual double * | Data ()=0 |
| virtual void | Zeros ()=0 |
| Put zero-values in the Array. | |
| virtual void | Ones ()=0 |
| Put one-values in the Array. | |
| virtual void | Constant (const double &c)=0 |
| virtual double & | operator[] (const int &i)=0 |
| operator [] | |
| virtual const double & | operator[] (const int &i) const =0 |
| const operator [] | |
| virtual void | SetValue (const int &i, const double &val)=0 |
| Set the Array Value. | |
| virtual void | SetValues (const std::vector< int > &indices, const std::vector< double > &values)=0 |
| Set the Array Values. | |
| virtual std::vector< double > | GetValues (const std::vector< int > &indices={}) const =0 |
| virtual double | GetValue (const int &i) const =0 |
| virtual void | AddValue (const int &i, const double &val)=0 |
| Add value to the Array. | |
| virtual void | AddValues (const std::vector< int > &indices, const std::vector< double > &values)=0 |
| Add values in the indices to the Array. | |
| virtual void | SumMultiplication (const ISparseArray &A, const IArray &w)=0 |
| Multiplication of matrix and vector, equivalent to v += A * w. | |
| virtual void | SubtractionMultiplication (const ISparseArray &A, const IArray &w)=0 |
| Multiplication of matrix and vector and sum to local vector, equivalent to v -= A * w. | |
| virtual void | Concatenate (const IArray &v, const IArray &w)=0 |
| Concatenate vectors, equivalent u<< v, w. | |
| virtual double | Norm () const =0 |
| virtual double | Dot (const IArray &v) const =0 |
| virtual void | Copy (const IArray &v)=0 |
| Copy the content of vector v inside this. | |
| virtual std::ostream & | Print (std::ostream &output) const =0 |
| Print the array. | |
| virtual void | ToBinaryFile (const std::string &filePath, const unsigned int &dataSizeToWrite=0, const unsigned int &dataStartingPositionToWrite=0, const bool &append=false) const =0 |
| Write array to binary file. | |
| virtual IArray & | operator+= (const IArray &v)=0 |
| virtual IArray & | operator-= (const IArray &v)=0 |
| virtual IArray & | operator*= (const double &c)=0 |
| virtual IArray & | operator/= (const double &c)=0 |
Friends | |
| std::ostream & | operator<< (std::ostream &output, const IArray &b) |
| operator << | |
Interface used for column double Array.
|
inlinevirtual |
Add value to the Array.
| i | the i_th global position starting from 0 |
| val | element to add |
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
|
pure virtual |
Add values in the indices to the Array.
| indices | the indices |
| values | the values |
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Concatenate vectors, equivalent u<< v, w.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Copy the content of vector v inside this.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Matrix create call. Last call to complete the matrix structure.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
|
pure virtual |
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Put one-values in the Array.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
const operator []
| i | the i_th position starting from 0 |
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
operator []
| i | the i_th position starting from 0 |
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
|
pure virtual |
Print the array.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Set the size the Array. Resize a Array for Eigen application.
| numCols | the number of cols |
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
|
pure virtual |
Set the size the Array. Resize a Array for Eigen application.
| numCols | the number of cols |
| numLocalCols | the local size for the Array (It can be set for each process. For PETSC applciation when not specified is set to PETSC_DECIDE) |
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Set the Array Value.
| i | the i_th global position starting from 0 |
| val | element to set |
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
|
pure virtual |
Set the Array Values.
| indices | the indices |
| values | the values |
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
|
pure virtual |
Multiplication of matrix and vector and sum to local vector, equivalent to v -= A * w.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
|
pure virtual |
Multiplication of matrix and vector, equivalent to v += A * w.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
|
pure virtual |
Write array to binary file.
| filePath | the file Path |
| dataSizeToWrite | the size of data to write, default 0 means all the vector |
| dataStartingPositionToWrite | the file starting position, default 0 |
| append | true if append operation, default false |
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.
Put zero-values in the Array.
Implemented in Gedim::Eigen_Array< Eigen_ArrayType, Eigen_SparseArrayType >.