
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) | 
Private Attributes | |
| VectorSpace< double > | vecSpace_ | 
| Array< double > | data_ | 
| int | dim_ | 
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.
References Playa::Handle< PointerType >::ptr().
| 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.
References data_.
| 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.
References data_.
| 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.
References dim_.
| virtual double* Playa::SerialVector::dataPtr | ( | ) |  [inline, virtual] | 
        
Implements Playa::SingleChunkVector< double >.
Definition at line 88 of file PlayaSerialVector.hpp.
References data_.
| virtual const double* Playa::SerialVector::dataPtr | ( | ) |  const [inline, virtual] | 
        
Implements Playa::SingleChunkVector< double >.
Definition at line 86 of file PlayaSerialVector.hpp.
References data_.
Referenced by Playa::DenseSerialMatrix::apply(), Playa::denseSolve(), and Playa::denseSVD().
| std::string SerialVector::description | ( | ) | const | 
| void SerialVector::finalizeAssembly | ( | ) |  [virtual] | 
        
Reimplemented from Playa::LoadableVector< double >.
Definition at line 74 of file PlayaSerialVector.cpp.
| SerialVector * SerialVector::getConcrete | ( | Vector< double > & | x | ) |  [static] | 
        
Definition at line 67 of file PlayaSerialVector.cpp.
References Playa::Handle< PointerType >::ptr().
| const SerialVector * SerialVector::getConcrete | ( | const Vector< double > & | x | ) |  [static] | 
        
Definition at line 60 of file PlayaSerialVector.cpp.
References Playa::Handle< PointerType >::ptr().
Referenced by Playa::DenseSerialMatrix::apply().
| 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.
| 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.
References data_.
| 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.
References data_.
| 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.
References Playa::Handle< PointerType >::ptr(), and vecSpace_.
Array<double> Playa::SerialVector::data_ [private]           | 
        
Definition at line 101 of file PlayaSerialVector.hpp.
Referenced by addToElement(), addToElements(), dataPtr(), setElement(), and setElements().
int Playa::SerialVector::dim_ [private]           | 
        
VectorSpace<double> Playa::SerialVector::vecSpace_ [private]           |