Reference documentation for deal.II version 9.1.1
|
#include <deal.II/lac/solver_gmres.h>
Public Member Functions | |
TmpVectors (const unsigned int max_size, VectorMemory< VectorType > &vmem) | |
~TmpVectors ()=default | |
VectorType & | operator[] (const unsigned int i) const |
VectorType & | operator() (const unsigned int i, const VectorType &temp) |
unsigned int | size () const |
Private Attributes | |
VectorMemory< VectorType > & | mem |
std::vector< typename VectorMemory< VectorType >::Pointer > | data |
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 59 of file solver_gmres.h.
internal::SolverGMRESImplementation::TmpVectors< VectorType >::TmpVectors | ( | const unsigned int | max_size, |
VectorMemory< VectorType > & | vmem | ||
) |
Constructor. Prepares an array of VectorType
of length max_size
.
|
default |
Destructor. Delete all allocated vectors.
VectorType& internal::SolverGMRESImplementation::TmpVectors< VectorType >::operator[] | ( | const unsigned int | i | ) | const |
Get vector number i
. If this vector was unused before, an error occurs.
VectorType& internal::SolverGMRESImplementation::TmpVectors< VectorType >::operator() | ( | const unsigned int | i, |
const VectorType & | 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.
unsigned int internal::SolverGMRESImplementation::TmpVectors< VectorType >::size | ( | ) | const |
Return size of data vector. It is used in the solver to store the Arnoldi vectors.
|
private |
Pool were vectors are obtained from.
Definition at line 100 of file solver_gmres.h.
|
private |
Field for storing the vectors.
Definition at line 105 of file solver_gmres.h.