Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Public Member Functions | Private Attributes | List of all members
internal::SolverIDRImplementation::TmpVectors< VectorType > Class Template Reference

#include <deal.II/lac/solver_idr.h>

Public Member Functions

 TmpVectors (const unsigned int s_param, VectorMemory< VectorType > &vmem)
 
 ~TmpVectors ()=default
 
VectorTypeoperator[] (const unsigned int i) const
 
VectorTypeoperator() (const unsigned int i, const VectorType &temp)
 

Private Attributes

VectorMemory< VectorType > & mem
 
std::vector< typename VectorMemory< VectorType >::Pointer > data
 

Detailed Description

template<typename VectorType>
class internal::SolverIDRImplementation::TmpVectors< VectorType >

Class to hold temporary vectors whose size depends on the solver parameter s.

Definition at line 51 of file solver_idr.h.

Constructor & Destructor Documentation

◆ TmpVectors()

template<typename VectorType >
internal::SolverIDRImplementation::TmpVectors< VectorType >::TmpVectors ( const unsigned int  s_param,
VectorMemory< VectorType > &  vmem 
)

Constructor. Prepares an array of VectorType of length s_param.

◆ ~TmpVectors()

template<typename VectorType >
internal::SolverIDRImplementation::TmpVectors< VectorType >::~TmpVectors ( )
default

Destructor. Delete all allocated vectors.

Member Function Documentation

◆ operator[]()

template<typename VectorType >
VectorType& internal::SolverIDRImplementation::TmpVectors< VectorType >::operator[] ( const unsigned int  i) const

Get vector number i. If this vector was unused before, an error occurs.

◆ operator()()

template<typename VectorType >
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.

Member Data Documentation

◆ mem

template<typename VectorType >
VectorMemory<VectorType>& internal::SolverIDRImplementation::TmpVectors< VectorType >::mem
private

Pool where vectors are obtained from.

Definition at line 83 of file solver_idr.h.

◆ data

template<typename VectorType >
std::vector<typename VectorMemory<VectorType>::Pointer> internal::SolverIDRImplementation::TmpVectors< VectorType >::data
private

Field for storing the vectors.

Definition at line 88 of file solver_idr.h.


The documentation for this class was generated from the following file: