Playa::SerialVector Class Reference

#include <PlayaSerialVector.hpp>

Inheritance diagram for Playa::SerialVector:

Playa::SingleChunkVector< double > Playa::LoadableVector< double > Playa::VectorBase< double >

List of all members.

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 SerialVectorgetConcrete (const Vector< double > &x)
static SerialVectorgetConcrete (Vector< double > &x)


Detailed Description

Playa implementation of a serial vector, implementing the LoadableVector interface allowing an application to access elements. If created in SPMD, this will be replicated on all processors.

Definition at line 26 of file PlayaSerialVector.hpp.


Constructor & Destructor Documentation

SerialVector::SerialVector ( const VectorSpace< double > &  vs  ) 

Construct with a vector space.

Definition at line 18 of file PlayaSerialVector.cpp.


Member Function Documentation

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]

Implements Playa::SingleChunkVector< double >.

Definition at line 86 of file PlayaSerialVector.hpp.

virtual double* Playa::SerialVector::dataPtr (  )  [inline, virtual]

Implements Playa::SingleChunkVector< double >.

Definition at line 88 of file PlayaSerialVector.hpp.

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.


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

doxygen