Reference documentation for deal.II version 9.4.1
\(\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\}}\)
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MGCoarseGridHouseholder< number, VectorType > Class Template Reference

#include <deal.II/multigrid/mg_coarse.h>

Inheritance diagram for MGCoarseGridHouseholder< number, VectorType >:
[legend]

Public Member Functions

 MGCoarseGridHouseholder (const FullMatrix< number > *A=nullptr)
 
void initialize (const FullMatrix< number > &A)
 
void operator() (const unsigned int level, VectorType &dst, const VectorType &src) const override
 

Private Attributes

Householder< number > householder
 

Subscriptor functionality

Classes derived from Subscriptor provide a facility to subscribe to this object. This is mostly used by the SmartPointer class.

std::atomic< unsigned intcounter
 
std::map< std::string, unsigned intcounter_map
 
std::vector< std::atomic< bool > * > validity_pointers
 
const std::type_info * object_info
 
void subscribe (std::atomic< bool > *const validity, const std::string &identifier="") const
 
void unsubscribe (std::atomic< bool > *const validity, const std::string &identifier="") const
 
unsigned int n_subscriptions () const
 
template<typename StreamType >
void list_subscribers (StreamType &stream) const
 
void list_subscribers () const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
using map_value_type = decltype(counter_map)::value_type
 
using map_iterator = decltype(counter_map)::iterator
 
static std::mutex mutex
 
static ::ExceptionBaseExcInUse (int arg1, std::string arg2, std::string arg3)
 
static ::ExceptionBaseExcNoSubscriber (std::string arg1, std::string arg2)
 
void check_no_subscribers () const noexcept
 

Detailed Description

template<typename number = double, class VectorType = Vector<number>>
class MGCoarseGridHouseholder< number, VectorType >

Coarse grid solver by QR factorization implemented in the class Householder.

Upon initialization, the QR decomposition of the matrix is computed. then, the operator() uses Householder::least_squares() to compute the action of the inverse.

Definition at line 175 of file mg_coarse.h.

Constructor & Destructor Documentation

◆ MGCoarseGridHouseholder()

template<typename number = double, class VectorType = Vector<number>>
MGCoarseGridHouseholder< number, VectorType >::MGCoarseGridHouseholder ( const FullMatrix< number > *  A = nullptr)

Constructor, taking the coarse grid matrix.

Member Function Documentation

◆ initialize()

template<typename number = double, class VectorType = Vector<number>>
void MGCoarseGridHouseholder< number, VectorType >::initialize ( const FullMatrix< number > &  A)

Initialize for a new matrix.

◆ operator()()

template<typename number = double, class VectorType = Vector<number>>
void MGCoarseGridHouseholder< number, VectorType >::operator() ( const unsigned int  level,
VectorType &  dst,
const VectorType &  src 
) const
overridevirtual

Solution operator.

Implements MGCoarseGridBase< VectorType >.

Member Data Documentation

◆ householder

template<typename number = double, class VectorType = Vector<number>>
Householder<number> MGCoarseGridHouseholder< number, VectorType >::householder
private

Matrix for QR-factorization.

Definition at line 198 of file mg_coarse.h.


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