|
|
| Vector () |
| | Construct a new Vector object of size 0.
|
| |
| | Vector (Communicator comm, const std::array< int, D > &ns, int num_components, int num_local_patches, int num_ghost_cells) |
| | Construct a new Vector object with managed memory. More...
|
| |
| | Vector (const Domain< D > &domain, int num_components) |
| | Construct a new Vector object for a given domain. More...
|
| |
| | Vector (Communicator comm, const std::vector< double * > &patch_starts, const std::array< int, D+1 > &strides, const std::array< int, D+1 > &lengths, int num_ghost_cells) |
| | Construct a new Vector object with unmanaged memory. More...
|
| |
| | Vector (const Vector< D > &other) |
| | Copy constructor. More...
|
| |
| Vector< D > & | operator= (const Vector< D > &other) |
| | Copy assignment. More...
|
| |
| | Vector (Vector< D > &&other) |
| | Move constructor. More...
|
| |
| Vector< D > & | operator= (Vector< D > &&other) |
| | Move assignment. More...
|
| |
| const Communicator & | getCommunicator () const |
| | get the MPI Comm that this vector uses More...
|
| |
|
int | getNumComponents () const |
| |
|
int | getNumLocalPatches () const |
| | Get the number of local patches.
|
| |
| int | getNumLocalCells () const |
| | Get the number of local cells int he vector (excluding ghost cells) More...
|
| |
| int | getNumGhostCells () const |
| | Get the number of ghost cells. More...
|
| |
| ComponentView< double, D > | getComponentView (int component_index, int patch_local_index) |
| | Get the ComponentView for the specified patch and component. More...
|
| |
| ComponentView< const double, D > | getComponentView (int component_index, int patch_local_index) const |
| | Get the ComponentView for the specified patch and component. More...
|
| |
| PatchView< double, D > | getPatchView (int patch_local_index) |
| | Get the View objects for the specified patch index of View object will correspond to component index. More...
|
| |
| PatchView< const double, D > | getPatchView (int patch_local_index) const |
| | Get the View objects for the specified patch index of View object will correspond to component index. More...
|
| |
| void | set (double alpha) |
| | set all value in the vector More...
|
| |
| void | setWithGhost (double alpha) |
| | set all values in the vector (including ghost cells) More...
|
| |
| void | scale (double alpha) |
| | scale all elements in the vector More...
|
| |
| void | shift (double delta) |
| | shift all the values in the vector More...
|
| |
| void | copy (const Vector< D > &b) |
| | copy the values of the other vector More...
|
| |
| void | copyWithGhost (const Vector< D > &b) |
| | copy the values of the other vector include ghost cell values More...
|
| |
| void | add (const Vector< D > &b) |
| | add the other vector to this vector More...
|
| |
|
void | addScaled (double alpha, const Vector< D > &b) |
| | this = this + alpha * b
|
| |
|
void | addScaled (double alpha, const Vector< D > &a, double beta, const Vector< D > &b) |
| | this = this + alpha * a + beta * b
|
| |
|
void | scaleThenAdd (double alpha, const Vector< D > &b) |
| | this = alpha * this + b
|
| |
|
void | scaleThenAddScaled (double alpha, double beta, const Vector< D > &b) |
| | this = alpha * this + beta * b
|
| |
|
void | scaleThenAddScaled (double alpha, double beta, const Vector< D > &b, double gamma, const Vector< D > &c) |
| | this = alpha * this + beta * b + gamma * c
|
| |
|
double | twoNorm () const |
| | get the l2norm
|
| |
|
double | infNorm () const |
| | get the infnorm
|
| |
|
double | dot (const Vector< D > &b) const |
| | get the dot product
|
| |
| Vector< D > | getZeroClone () const |
| | Get a vector of the same length initialized to zero. More...
|
| |
template<int D>
class ThunderEgg::Vector< D >
Vector class for use in thunderegg.
- Template Parameters
-
| D | the number of cartesian dimensions |