DOLFINx 0.9.0
DOLFINx C++ interface
|
#include <Vector.h>
Public Types | |
using | value_type = T |
Scalar type. | |
using | container_type = Container |
Container type. | |
Public Member Functions | |
Vector (std::shared_ptr< const common::IndexMap > map, int bs) | |
Vector (const Vector &x) | |
Copy constructor. | |
Vector (Vector &&x) | |
Move constructor. | |
Vector & | operator= (const Vector &x)=delete |
Vector & | operator= (Vector &&x)=default |
Move Assignment operator. | |
void | set (value_type v) |
void | scatter_fwd_begin () |
void | scatter_fwd_end () |
void | scatter_fwd () |
void | scatter_rev_begin () |
template<class BinaryOperation > | |
void | scatter_rev_end (BinaryOperation op) |
template<class BinaryOperation > | |
void | scatter_rev (BinaryOperation op) |
std::shared_ptr< const common::IndexMap > | index_map () const |
Get IndexMap. | |
constexpr int | bs () const |
Get block size. | |
std::span< const value_type > | array () const |
Get local part of the vector (const version) | |
std::span< value_type > | mutable_array () |
Get local part of the vector. | |
Distributed vector
T | Scalar type |
Container | data container type |
|
inline |
Create a distributed vector
map | IndexMap for parallel distribution of the data |
bs | Block size |
|
inline |
Scatter local data to ghost positions on other ranks
|
inline |
Begin scatter of local data from owner to ghosts on other ranks
|
inline |
End scatter of local data from owner to ghosts on other ranks
|
inline |
Scatter ghost data to owner. This process may receive data from more than one process, and the received data can be summed or inserted into the local portion of the vector.
op | IndexMap operation (add or insert) |
|
inline |
Start scatter of ghost data to owner
|
inline |
End scatter of ghost data to owner. This process may receive data from more than one process, and the received data can be summed or inserted into the local portion of the vector.
op | The operation to perform when adding/setting received values (add or insert) |
|
inline |
Set all entries (including ghosts)
[in] | v | The value to set all entries to (on calling rank) |