PROLONGATION

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

#include "PROLONGATION.h"

Public Functions

Name
PROLONGATION(const PROLONGATION_params &restrict input_params)
Creates an empty object and set parameters.
~PROLONGATION()
Deletes the object.
void Compute(DSMat &restrict mat_A, TSPACE &restrict TSP, COARSEN &restrict COARS, iReg nlevel)
Computes the prolongation.
DSMat * Get_ptr_mat_P()
Retrieves the pointer to the mat_P DSMat.
DSMat * Get_ptr_mat_PT()
Retrieves the pointer to the mat_PT DSMat.
void Restriction()
Computes the restriction (transpose the mat_P).
void Filter(const FILTERING_params filt_parm, const DDMat *restrict TV)
Filters the prolongation.
void Prepare_MxV(const iReg nRHS)
Prepares the objects for the application to a vector (DDMat).
void UndoPrepare_MxV()
Undo the data structure necessary for MxV.

Detailed Description

class PROLONGATION;

This class is used to manage the prolongation for AMG.

class PROLONGATION.

Public Functions Documentation

function PROLONGATION

PROLONGATION(
    const PROLONGATION_params &__restrict__ input_params
)

Creates an empty object and set parameters.

function ~PROLONGATION

~PROLONGATION()

Deletes the object.

function Compute

void Compute(
    DSMat &__restrict__ mat_A,
    TSPACE &__restrict__ TSP,
    COARSEN &__restrict__ COARS,
    iReg nlevel
)

Computes the prolongation.

Parameters:

  • mat_A system matrix.
  • TSP TSPACE object.
  • COARS COARSEN object.
  • nlevel level index (used only for debug printing).

function Get_ptr_mat_P

inline DSMat * Get_ptr_mat_P()

Retrieves the pointer to the mat_P DSMat.

function Get_ptr_mat_PT

inline DSMat * Get_ptr_mat_PT()

Retrieves the pointer to the mat_PT DSMat.

function Restriction

void Restriction()

Computes the restriction (transpose the mat_P).

function Filter

void Filter(
    const FILTERING_params filt_parm,
    const DDMat *__restrict__ TV
)

Filters the prolongation.

Parameters:

  • filt_parm parameters for filtering.
  • TV dense matrix containing the testspace

function Prepare_MxV

void Prepare_MxV(
    const iReg nRHS
)

Prepares the objects for the application to a vector (DDMat).

Parameters:

  • nRHS number of Right Hand Sides.

function UndoPrepare_MxV

void UndoPrepare_MxV()

Undo the data structure necessary for MxV.


Updated on 12 February 2021 at 11:59:50 CET