Reference documentation for deal.II version 9.2.0
|
#include <deal.II/lac/solver_idr.h>
Public Member Functions | |
TmpVectors (const unsigned int s_param, VectorMemory< VectorType > &vmem) | |
~TmpVectors ()=default | |
VectorType & | operator[] (const unsigned int i) const |
VectorType & | operator() (const unsigned int i, const VectorType &temp) |
Private Attributes | |
VectorMemory< VectorType > & | mem |
std::vector< typename VectorMemory< VectorType >::Pointer > | data |
Class to hold temporary vectors whose size depends on the solver parameter s.
Definition at line 51 of file solver_idr.h.
internal::SolverIDRImplementation::TmpVectors< VectorType >::TmpVectors | ( | const unsigned int | s_param, |
VectorMemory< VectorType > & | vmem | ||
) |
Constructor. Prepares an array of VectorType
of length s_param
.
|
default |
Destructor. Delete all allocated vectors.
VectorType& internal::SolverIDRImplementation::TmpVectors< VectorType >::operator[] | ( | const unsigned int | i | ) | const |
Get vector number i
. If this vector was unused before, an error occurs.
VectorType& internal::SolverIDRImplementation::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.
|
private |
Pool where vectors are obtained from.
Definition at line 83 of file solver_idr.h.
|
private |
Field for storing the vectors.
Definition at line 88 of file solver_idr.h.