12 #ifndef MFEM_BLOCKVECTOR
13 #define MFEM_BLOCKVECTOR
15 #include "../config/config.hpp"
16 #include "../general/array.hpp"
~BlockVector()
Destructor.
void GetBlockView(int i, Vector &blockView)
Get the i-th vector in the block.
BlockVector()
empty constructor
const int * blockOffsets
Offset for each block start. (length numBlocks+1)
void Update(double *data, const Array< int > &bOffsets)
Update method.
const Vector & GetBlock(int i) const
Get the i-th vector in the block (const version).
int numBlocks
Number of blocks in the blockVector.
BlockVector & operator=(const BlockVector &original)
Assignment operator. this and original must have the same block structure.
Vector * blocks
array of Vector objects used to extract blocks without allocating memory.
Vector & GetBlock(int i)
Get the i-th vector in the block.