#include <distributed_data.h>

Public Member Functions | |
| Vector () | |
| Vector (int num_total_rows) | |
| Vector (int num_total_rows, int num_ghosts) | |
| ~Vector () | |
| Deletes a vector. | |
| void | set_size (int num_total_rows) |
| Evenly distributes a vector across the cores. | |
| void | set_ghost_size (int num_total_rows, int num_ghosts) |
| Creates a ghost vector (useful for time series data). | |
| void | print (std::string file_name) const |
| void | view (void) const |
| Prints a vector to stdout. | |
| int | id (void) const |
| int | size (void) const |
| int | lsize (void) const |
Public Attributes | |
| Vec | data |
Private Attributes | |
| int | num_total_rows |
| int | num_local_rows |
| int | local_row_begin |
| int | local_row_end |
| int | num_ghosts |
| Vector::Vector | ( | ) |
| Vector::Vector | ( | int | num_total_rows | ) |
| Vector::Vector | ( | int | num_total_rows, | |
| int | num_ghosts | |||
| ) |
| Vector::~Vector | ( | ) |
Deletes a vector.
| void Vector::set_size | ( | int | num_total_rows_ | ) |
Evenly distributes a vector across the cores.
| num_total_rows | : The total number of elements in the vector across all cores. |
| void Vector::set_ghost_size | ( | int | num_total_rows_, | |
| int | num_ghosts_ | |||
| ) |
Creates a ghost vector (useful for time series data).
| num_total_rows | : The number of elements in the global vector. | |
| num_ghosts | : The number of ghost elements on the local vector. |
| void ddata::Vector::print | ( | std::string | file_name | ) | const |
| void Vector::view | ( | void | ) | const |
Prints a vector to stdout.
| int ddata::Vector::id | ( | void | ) | const [inline] |
| int ddata::Vector::size | ( | void | ) | const [inline] |
| int ddata::Vector::lsize | ( | void | ) | const [inline] |
int ddata::Vector::num_total_rows [private] |
int ddata::Vector::num_local_rows [private] |
int ddata::Vector::local_row_begin [private] |
int ddata::Vector::local_row_end [private] |
int ddata::Vector::num_ghosts [private] |
Source code hosted by