ddata::Vector Class Reference

The vector class is designed to handle very large vectors. More...

#include <distributed_data.h>

Inheritance diagram for ddata::Vector:

ddata::DistributedData

List of all members.

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


Detailed Description

The vector class is designed to handle very large vectors.

Constructor & Destructor Documentation

Vector::Vector (  ) 

Vector::Vector ( int  num_total_rows  ) 

Vector::Vector ( int  num_total_rows,
int  num_ghosts 
)

Vector::~Vector (  ) 

Deletes a vector.


Member Function Documentation

void Vector::set_size ( int  num_total_rows_  ) 

Evenly distributes a vector across the cores.

Parameters:
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).

Parameters:
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]


Member Data Documentation


The documentation for this class was generated from the following files:

Documentation generated by  doxygen
Source code hosted by