![]() |
Reference documentation for deal.II version 8.1.0
|
#include <solver_gmres.h>
Public Member Functions | |
TmpVectors (const unsigned int max_size, VectorMemory< VECTOR > &vmem) | |
~TmpVectors () | |
VECTOR & | operator[] (const unsigned int i) const |
VECTOR & | operator() (const unsigned int i, const VECTOR &temp) |
Private Attributes | |
VectorMemory< VECTOR > & | mem |
std::vector< VECTOR * > | data |
unsigned int | offset |
Class to hold temporary vectors. This class automatically allocates a new vector, once it is needed.
A future version should also be able to shift through vectors automatically, avoiding restart.
Definition at line 55 of file solver_gmres.h.
internal::SolverGMRES::TmpVectors< VECTOR >::TmpVectors | ( | const unsigned int | max_size, |
VectorMemory< VECTOR > & | vmem | ||
) |
Constructor. Prepares an array of VECTOR
of length max_size
.
internal::SolverGMRES::TmpVectors< VECTOR >::~TmpVectors | ( | ) |
Delete all allocated vectors.
VECTOR& internal::SolverGMRES::TmpVectors< VECTOR >::operator[] | ( | const unsigned int | i | ) | const |
Get vector number i
. If this vector was unused before, an error occurs.
VECTOR& internal::SolverGMRES::TmpVectors< VECTOR >::operator() | ( | const unsigned int | i, |
const VECTOR & | temp | ||
) |
Get vector number i
. Allocate it if necessary.
If a vector must be allocated, temp
is used to reinit it to the proper dimensions.
|
private |
Pool were vectors are obtained from.
Definition at line 88 of file solver_gmres.h.
|
private |
Field for storing the vectors.
Definition at line 93 of file solver_gmres.h.
|
private |
Offset of the first vector. This is for later when vector rotation will be implemented.
Definition at line 99 of file solver_gmres.h.