#include <PlayaSerialVector.hpp>
Public Member Functions | |
SerialVector (const VectorSpace< double > &vs) | |
VectorBase interface | |
RCP< const VectorSpaceBase < double > > | space () const |
LoadableVector interface | |
void | setElement (int globalIndex, const double &value) |
void | addToElement (int globalIndex, const double &value) |
void | setElements (int numElems, const int *globalIndices, const double *values) |
void | addToElements (int numElems, const int *globalIndices, const double *values) |
void | finalizeAssembly () |
Diagnostics | |
std::string | description () const |
Access through global indices | |
void | getElements (const int *globalIndices, int numElems, Array< double > &elems) const |
Single chunk data access interface | |
virtual const double * | dataPtr () const |
virtual double * | dataPtr () |
virtual int | chunkSize () const |
Static Public Member Functions | |
static const SerialVector * | getConcrete (const Vector< double > &x) |
static SerialVector * | getConcrete (Vector< double > &x) |
Definition at line 26 of file PlayaSerialVector.hpp.
SerialVector::SerialVector | ( | const VectorSpace< double > & | vs | ) |
Construct with a vector space.
Definition at line 18 of file PlayaSerialVector.cpp.
RCP<const VectorSpaceBase<double> > Playa::SerialVector::space | ( | ) | const [inline, virtual] |
Access to the space in which this vector lives
Implements Playa::VectorBase< double >.
Definition at line 38 of file PlayaSerialVector.hpp.
void SerialVector::setElement | ( | int | globalIndex, | |
const double & | value | |||
) | [virtual] |
set a single element
Implements Playa::LoadableVector< double >.
Definition at line 32 of file PlayaSerialVector.cpp.
void SerialVector::addToElement | ( | int | globalIndex, | |
const double & | value | |||
) | [virtual] |
add to a single element
Implements Playa::LoadableVector< double >.
Definition at line 37 of file PlayaSerialVector.cpp.
void SerialVector::setElements | ( | int | numElems, | |
const int * | globalIndices, | |||
const double * | values | |||
) | [virtual] |
set a group of elements
Reimplemented from Playa::LoadableVector< double >.
Definition at line 42 of file PlayaSerialVector.cpp.
void SerialVector::addToElements | ( | int | numElems, | |
const int * | globalIndices, | |||
const double * | values | |||
) | [virtual] |
add to a group of elements
Reimplemented from Playa::LoadableVector< double >.
Definition at line 51 of file PlayaSerialVector.cpp.
void SerialVector::finalizeAssembly | ( | ) | [virtual] |
Reimplemented from Playa::LoadableVector< double >.
Definition at line 74 of file PlayaSerialVector.cpp.
std::string SerialVector::description | ( | ) | const |
Definition at line 89 of file PlayaSerialVector.cpp.
void SerialVector::getElements | ( | const int * | globalIndices, | |
int | numElems, | |||
Array< double > & | elems | |||
) | const |
get the batch of elements at the given global indices
Definition at line 79 of file PlayaSerialVector.cpp.
const SerialVector * SerialVector::getConcrete | ( | const Vector< double > & | x | ) | [static] |
Definition at line 60 of file PlayaSerialVector.cpp.
SerialVector * SerialVector::getConcrete | ( | Vector< double > & | x | ) | [static] |
Definition at line 67 of file PlayaSerialVector.cpp.
virtual const double* Playa::SerialVector::dataPtr | ( | ) | const [inline, virtual] |
virtual double* Playa::SerialVector::dataPtr | ( | ) | [inline, virtual] |
virtual int Playa::SerialVector::chunkSize | ( | ) | const [inline, virtual] |
Size of the (single) chunk of data values
Implements Playa::SingleChunkVector< double >.
Definition at line 91 of file PlayaSerialVector.hpp.