#include <DistributedVector.hpp>
Public Member Functions | |
Stripe (DistributedVector parallelVec, unsigned stripe) | |
double & | operator[] (unsigned globalIndex) throw (DistributedVectorException) |
double & | operator[] (Iterator index) throw (DistributedVectorException) |
Public Attributes | |
unsigned | mStride |
unsigned | mStripe |
double * | mpVec |
A striped vector has multiple types of information encoded within a single vector, with a layout like [x_1, y_1, z_1, x_2, y_2, z_2, ... x_n, y_n, z_n]. This class provides easy access to, for example, the x values.
Definition at line 173 of file DistributedVector.hpp.
DistributedVector::Stripe::Stripe | ( | DistributedVector | parallelVec, | |
unsigned | stripe | |||
) | [inline] |
Constructor.
parallelVec | striped vector | |
stripe | number of this stripe within the vector starting from 0 |
Definition at line 186 of file DistributedVector.hpp.
References DistributedVector::mNumChunks, and DistributedVector::mpVec.
double& DistributedVector::Stripe::operator[] | ( | unsigned | globalIndex | ) | throw (DistributedVectorException) [inline] |
Access a particular element of the stripe if on this processor
globalIndex | index within the stripe |
Definition at line 201 of file DistributedVector.hpp.
References DistributedVector::mHi, and DistributedVector::mLo.
double& DistributedVector::Stripe::operator[] | ( | Iterator | index | ) | throw (DistributedVectorException) [inline] |
index |
Definition at line 214 of file DistributedVector.hpp.