|
| | Vector (std::string _name="", INMOST_DATA_ENUM_TYPE start=0, INMOST_DATA_ENUM_TYPE end=0, INMOST_MPI_Comm _comm=INMOST_MPI_COMM_WORLD) |
| | Main constructor of the Vector class. More...
|
| |
| | Vector (const Vector &other) |
| | Copy constructor. More...
|
| |
| Vector & | operator= (Vector const &other) |
| | Assignment operator. More...
|
| |
|
| ~Vector () |
| | Delete data of the vector.
|
| |
|
INMOST_DATA_REAL_TYPE & | operator[] (INMOST_DATA_ENUM_TYPE i) |
| | Return reference to i-th element of the vector.
|
| |
|
INMOST_DATA_REAL_TYPE | operator[] (INMOST_DATA_ENUM_TYPE i) const |
| | Return i-th element of the vector.
|
| |
|
INMOST::Matrix< INMOST_DATA_REAL_TYPE > | operator[] (const INMOST::AbstractMatrix< INMOST_DATA_INTEGER_TYPE > &rows) const |
| | Return a block of elements.
|
| |
|
INMOST::Matrix< value_reference > | operator[] (const INMOST::AbstractMatrix< INMOST_DATA_INTEGER_TYPE > &rows) |
| | Return a block of elements.
|
| |
|
INMOST_DATA_ENUM_TYPE | Size () const |
| | Return the global size of the vector.
|
| |
|
iterator | Begin () |
| | Iterator pointing to the first value of the vector.
|
| |
|
const_iterator | Begin () const |
| | Iterator pointing to the first constant value of the vector.
|
| |
|
iterator | End () |
| | Iterator pointing behind the last value of the vector.
|
| |
|
const_iterator | End () const |
| | Iterator pointing behind the last constant value of the vector.
|
| |
|
bool | Empty () const |
| | Test is there any data in the vector.
|
| |
| void | SetInterval (INMOST_DATA_ENUM_TYPE start, INMOST_DATA_ENUM_TYPE end) |
| | Set the start and the end of the distributed vector interval. More...
|
| |
| void | GetInterval (INMOST_DATA_ENUM_TYPE &start, INMOST_DATA_ENUM_TYPE &end) const |
| | Get the start and the end of the distributed vector interval. More...
|
| |
| void | ShiftInterval (INMOST_DATA_ENUM_TYPE shift) |
| | Move starting position of local indexes. More...
|
| |
|
INMOST_DATA_ENUM_TYPE | GetFirstIndex () const |
| | Get the first index of the distributed vector interval.
|
| |
|
INMOST_DATA_ENUM_TYPE | GetLastIndex () const |
| | Get the last index of the distributed vector interval.
|
| |
|
INMOST_MPI_Comm | GetCommunicator () const |
| | Get the communicator which the vector is associated with.
|
| |
| void | Swap (Vector &other) |
| | Exchange all the data with another vector. More...
|
| |
|
void | Save (std::string file) |
| | Save the distributed vector to a single data file using parallel MPI I/O.
|
| |
| void | Load (std::string file, INMOST_DATA_ENUM_TYPE mbeg=ENUMUNDEF, INMOST_DATA_ENUM_TYPE mend=ENUMUNDEF, std::string file_ord="") |
| | Load the vector from a single data file using the specified interval. More...
|
| |
|
bool & | isParallel () |
| | Test whether the vector was assigned an extended range of values via OrderInfo class.
|
| |
|
std::string | GetName () |
| | Get the vector name specified in the main constructor.
|
| |
|
void | Clear () |
| | Clear all data of the current vector.
|
| |
Distributed vector class.
This class can be used to store both local and distributed dense data of real type. For example, to form the right-hand side or initial guess to the solution.
- See also
- Solve
Definition at line 74 of file inmost_sparse.h.