TSPACE

This class is used to manage the Test Space for AMG. More…

#include "TSPACE.h"

Public Functions

Name
TSPACE(const TSPACE_params & input_params)
Creates an empty object and set input parameter.
~TSPACE()
Deletes the object.
void Compute(DSMat & mat_A, DDMat const restrict V0 =nullptr, Preconditioner const restrict PREC =nullptr)
Computes the test space.
void Print_ASCII(const string & filename) const
Prints the Test Vectors in ASCII format.
iReg Get_ntv() const
Retrieves the Tspace’s number of test vector.
const rExt * Get_ptr_coef() const
Retrieves the pointer to the V coefficients.
DDMat * Get_ptr_V()
Retrieves the pointer to the V DDMat (useful for debug printing)
const DDMat * Get_ptr_V() const
void Restrict(const DSMat & mat_A, const COARSEN & COARS, TSPACE & TSPR)
Restricts the test space.
int get_iter() const
Get the number of iterations performed to set-up the TSPACE.
rExt get_min_eigval() const
Get the estimate of the minimal eigenvalue of the TSPACE.
rExt get_max_eval_NRM() const
Get the maximum eigenvalue residual norm after TSPACE set-up.
rExt get_max_evec_NRM() const
Get the maximum eigenvector residual norm after TSPACE set-up.

Detailed Description

class TSPACE;

This class is used to manage the Test Space for AMG.

class TSAPCE.

Public Functions Documentation

function TSPACE

TSPACE(
    const TSPACE_params & input_params
)

Creates an empty object and set input parameter.

function ~TSPACE

~TSPACE()

Deletes the object.

function Compute

void Compute(
    DSMat & mat_A,
    DDMat *const __restrict__ V0 =nullptr,
    Preconditioner *const __restrict__ PREC =nullptr
)

Computes the test space.

Parameters:

  • mat_A system matrix.
  • V0 initial test space (optional).
  • V0 initial test space (optional).

function Print_ASCII

inline void Print_ASCII(
    const string & filename
) const

Prints the Test Vectors in ASCII format.

function Get_ntv

inline iReg Get_ntv() const

Retrieves the Tspace’s number of test vector.

function Get_ptr_coef

inline const rExt * Get_ptr_coef() const

Retrieves the pointer to the V coefficients.

function Get_ptr_V

inline DDMat * Get_ptr_V()

Retrieves the pointer to the V DDMat (useful for debug printing)

function Get_ptr_V

inline const DDMat * Get_ptr_V() const

function Restrict

void Restrict(
    const DSMat & mat_A,
    const COARSEN & COARS,
    TSPACE & TSPR
)

Restricts the test space.

Parameters:

  • mat_A system matrix.
  • COARS COARSEN object.
  • TSPR restricted Test Space.

function get_iter

inline int get_iter() const

Get the number of iterations performed to set-up the TSPACE.

function get_min_eigval

inline rExt get_min_eigval() const

Get the estimate of the minimal eigenvalue of the TSPACE.

function get_max_eval_NRM

inline rExt get_max_eval_NRM() const

Get the maximum eigenvalue residual norm after TSPACE set-up.

function get_max_evec_NRM

inline rExt get_max_evec_NRM() const

Get the maximum eigenvector residual norm after TSPACE set-up.


Updated on 19 November 2024 at 10:20:48 CET