Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::Alina::ILUKRelaxation< Backend > Struct Template Reference

ILU(k) smoother. More...

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/alina/arccore/alina/Relaxation.h>

Inheritance diagram for Arcane::Alina::ILUKRelaxation< Backend >:
Collaboration diagram for Arcane::Alina::ILUKRelaxation< Backend >:

Classes

struct  params
 Relaxation parameters. More...
struct  nonzero
struct  sparse_vector

Public Types

typedef Backend::value_type value_type
typedef Backend::col_type col_type
typedef Backend::ptr_type ptr_type
typedef Backend::matrix matrix
typedef Backend::matrix_diagonal matrix_diagonal
typedef Backend::vector vector
typedef math::scalar_of< value_type >::type scalar_type
typedef Impl::ILUSolver< Backend > ilu_solve

Public Member Functions

template<class Matrix>
 ILUKRelaxation (const Matrix &A, const params &prm, const typename Backend::params &bprm)
 Constructs smoother for the system matrix.
template<class Matrix, class VectorRHS, class VectorX, class VectorTMP>
void apply_pre (const Matrix &A, const VectorRHS &rhs, VectorX &x, VectorTMP &tmp) const
 Apply pre-relaxation.
template<class Matrix, class VectorRHS, class VectorX, class VectorTMP>
void apply_post (const Matrix &A, const VectorRHS &rhs, VectorX &x, VectorTMP &tmp) const
 Apply post-relaxation.
template<class Matrix, class VectorRHS, class VectorX>
void apply (const Matrix &, const VectorRHS &rhs, VectorX &x) const
size_t bytes () const
 Memory used in bytes.

Public Attributes

struct Arcane::Alina::ILUKRelaxation::params prm

Private Attributes

std::shared_ptr< ilu_solve > ilu

Detailed Description

template<class Backend>
struct Arcane::Alina::ILUKRelaxation< Backend >

ILU(k) smoother.

Definition at line 1042 of file Relaxation.h.

Member Typedef Documentation

◆ col_type

template<class Backend>
typedef Backend::col_type Arcane::Alina::ILUKRelaxation< Backend >::col_type

Definition at line 1046 of file Relaxation.h.

◆ ilu_solve

template<class Backend>
typedef Impl::ILUSolver<Backend> Arcane::Alina::ILUKRelaxation< Backend >::ilu_solve

Definition at line 1054 of file Relaxation.h.

◆ matrix

template<class Backend>
typedef Backend::matrix Arcane::Alina::ILUKRelaxation< Backend >::matrix

Definition at line 1048 of file Relaxation.h.

◆ matrix_diagonal

template<class Backend>
typedef Backend::matrix_diagonal Arcane::Alina::ILUKRelaxation< Backend >::matrix_diagonal

Definition at line 1049 of file Relaxation.h.

◆ ptr_type

template<class Backend>
typedef Backend::ptr_type Arcane::Alina::ILUKRelaxation< Backend >::ptr_type

Definition at line 1047 of file Relaxation.h.

◆ scalar_type

template<class Backend>
typedef math::scalar_of<value_type>::type Arcane::Alina::ILUKRelaxation< Backend >::scalar_type

Definition at line 1052 of file Relaxation.h.

◆ value_type

template<class Backend>
typedef Backend::value_type Arcane::Alina::ILUKRelaxation< Backend >::value_type

Definition at line 1045 of file Relaxation.h.

◆ vector

template<class Backend>
typedef Backend::vector Arcane::Alina::ILUKRelaxation< Backend >::vector

Definition at line 1050 of file Relaxation.h.

Constructor & Destructor Documentation

◆ ILUKRelaxation()

template<class Backend>
template<class Matrix>
Arcane::Alina::ILUKRelaxation< Backend >::ILUKRelaxation ( const Matrix & A,
const params & prm,
const typename Backend::params & bprm )
inline

Constructs smoother for the system matrix.

Parameters
AThe system matrix.
prmRelaxation parameters.
backend_prmBackend parameters.

Definition at line 1091 of file Relaxation.h.

Member Function Documentation

◆ apply()

template<class Backend>
template<class Matrix, class VectorRHS, class VectorX>
void Arcane::Alina::ILUKRelaxation< Backend >::apply ( const Matrix & ,
const VectorRHS & rhs,
VectorX & x ) const
inline

Definition at line 1186 of file Relaxation.h.

◆ apply_post()

template<class Backend>
template<class Matrix, class VectorRHS, class VectorX, class VectorTMP>
void Arcane::Alina::ILUKRelaxation< Backend >::apply_post ( const Matrix & A,
const VectorRHS & rhs,
VectorX & x,
VectorTMP & tmp ) const
inline

Apply post-relaxation.

Parameters
ASystem matrix.
rhsRight-hand side.
xSolution vector.
tmpScratch vector.
prmRelaxation parameters.

Definition at line 1178 of file Relaxation.h.

◆ apply_pre()

template<class Backend>
template<class Matrix, class VectorRHS, class VectorX, class VectorTMP>
void Arcane::Alina::ILUKRelaxation< Backend >::apply_pre ( const Matrix & A,
const VectorRHS & rhs,
VectorX & x,
VectorTMP & tmp ) const
inline

Apply pre-relaxation.

Parameters
ASystem matrix.
rhsRight-hand side.
xSolution vector.
tmpScratch vector.
prmRelaxation parameters.

Definition at line 1169 of file Relaxation.h.

◆ bytes()

template<class Backend>
size_t Arcane::Alina::ILUKRelaxation< Backend >::bytes ( ) const
inlinevirtual

Memory used in bytes.

Implements Arcane::Alina::RelaxationBase.

Definition at line 1192 of file Relaxation.h.

Member Data Documentation

◆ ilu

template<class Backend>
std::shared_ptr<ilu_solve> Arcane::Alina::ILUKRelaxation< Backend >::ilu
private

Definition at line 1199 of file Relaxation.h.


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