PARALUTION  1.0.0
PARALUTION
paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType > Class Template Reference

#include <preconditioner_saddlepoint.hpp>

Inheritance diagram for paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >:
paralution::Preconditioner< OperatorType, VectorType, ValueType > paralution::Solver< OperatorType, VectorType, ValueType > paralution::ParalutionObj

Public Member Functions

 DiagJacobiSaddlePointPrecond ()
 
virtual ~DiagJacobiSaddlePointPrecond ()
 
virtual void Print (void) const
 Print information about the solver. More...
 
virtual void Clear (void)
 Clear (free all local data) the solver. More...
 
virtual void Set (Solver< OperatorType, VectorType, ValueType > &K_Solver, Solver< OperatorType, VectorType, ValueType > &S_Solver)
 
virtual void Build (void)
 Build the solver (data allocation, structure computation, numerical computation) More...
 
virtual void Solve (const VectorType &rhs, VectorType *x)
 Solve Operator x = rhs. More...
 
virtual void SolveZeroSol (const VectorType &rhs, VectorType *x)
 Solve Operator x = rhs; but set first the init x = 0. More...
 
void SetOperator (const OperatorType &op)
 Set the Operator of the solver. More...
 
virtual void ResetOperator (const OperatorType &op)
 Reset the operator; see ReBuildNumeric. More...
 
virtual void ReBuildNumeric (void)
 Rebuild only with numerical computation (no allocation or data structure computation) More...
 
virtual void MoveToHost (void)
 Move all the data (i.e. move the solver) to the host. More...
 
virtual void MoveToAccelerator (void)
 Move all the data (i.e. move the solver) to the accelerator. More...
 
virtual void Verbose (const int verb=1)
 Provide verbose output of the solver: verb == 0 no output verb == 1 print info about the solver (start,end); verb == 2 print (iter, residual) via iteration control;. More...
 

Protected Member Functions

virtual void MoveToHostLocalData_ (void)
 Move all local data to the host. More...
 
virtual void MoveToAcceleratorLocalData_ (void)
 Move all local data to the accelerator. More...
 
virtual void PrintStart_ (void) const
 Print starting msg of the solver. More...
 
virtual void PrintEnd_ (void) const
 Print ending msg of the solver. More...
 

Protected Attributes

OperatorType A_
 A_ is decomposed into $ [K_, F_; E_, 0] $, where. More...
 
OperatorType K_
 
OperatorType S_
 
int K_nrow_
 The sizes of the K_ matrix. More...
 
int K_nnz_
 
bool op_mat_format_
 Keep the precond matrix in CSR or not. More...
 
unsigned int precond_mat_format_
 Precond matrix format. More...
 
VectorType x_
 
VectorType x_1_
 
VectorType x_2_
 
VectorType x_1tmp_
 
VectorType rhs_
 
VectorType rhs_1_
 
VectorType rhs_2_
 
Solver< OperatorType, VectorType, ValueType > * K_solver_
 
Solver< OperatorType, VectorType, ValueType > * S_solver_
 
LocalVector< intpermutation_
 
int size_
 
const OperatorType * op_
 Pointer to the operator. More...
 
Solver< OperatorType, VectorType, ValueType > * precond_
 Pointer to the defined preconditioner. More...
 
bool build_
 Flag == true after building the solver (e.g. Build()) More...
 
int verb_
 Verbose flag verb == 0 no output verb == 1 print info about the solver (start,end); verb == 2 print (iter, residual) via iteration control;. More...
 
size_t global_obj_id
 

Constructor & Destructor Documentation

template<class OperatorType , class VectorType , typename ValueType >
paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::DiagJacobiSaddlePointPrecond ( )
template<class OperatorType , class VectorType , typename ValueType >
paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::~DiagJacobiSaddlePointPrecond ( )
virtual

Member Function Documentation

template<class OperatorType , class VectorType , typename ValueType >
void paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::Build ( void  )
virtual

Build the solver (data allocation, structure computation, numerical computation)

Reimplemented from paralution::Solver< OperatorType, VectorType, ValueType >.

template<class OperatorType , class VectorType , typename ValueType >
void paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::Clear ( void  )
virtual

Clear (free all local data) the solver.

Reimplemented from paralution::Solver< OperatorType, VectorType, ValueType >.

template<class OperatorType , class VectorType , typename ValueType >
void paralution::Solver< OperatorType, VectorType, ValueType >::MoveToAccelerator ( void  )
virtualinherited

Move all the data (i.e. move the solver) to the accelerator.

Referenced by main(), mexFunction(), and paralution_fortran_solve().

template<class OperatorType , class VectorType , typename ValueType >
void paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::MoveToAcceleratorLocalData_ ( void  )
protectedvirtual

Move all local data to the accelerator.

Implements paralution::Solver< OperatorType, VectorType, ValueType >.

template<class OperatorType , class VectorType , typename ValueType >
void paralution::Solver< OperatorType, VectorType, ValueType >::MoveToHost ( void  )
virtualinherited

Move all the data (i.e. move the solver) to the host.

template<class OperatorType , class VectorType , typename ValueType >
void paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::MoveToHostLocalData_ ( void  )
protectedvirtual

Move all local data to the host.

Implements paralution::Solver< OperatorType, VectorType, ValueType >.

template<class OperatorType , class VectorType , typename ValueType >
void paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::Print ( void  ) const
virtual

Print information about the solver.

Implements paralution::Solver< OperatorType, VectorType, ValueType >.

template<class OperatorType , class VectorType , typename ValueType >
void paralution::Preconditioner< OperatorType, VectorType, ValueType >::PrintEnd_ ( void  ) const
protectedvirtualinherited

Print ending msg of the solver.

Implements paralution::Solver< OperatorType, VectorType, ValueType >.

template<class OperatorType , class VectorType , typename ValueType >
void paralution::Preconditioner< OperatorType, VectorType, ValueType >::PrintStart_ ( void  ) const
protectedvirtualinherited

Print starting msg of the solver.

Implements paralution::Solver< OperatorType, VectorType, ValueType >.

template<class OperatorType , class VectorType , typename ValueType >
void paralution::Solver< OperatorType, VectorType, ValueType >::ReBuildNumeric ( void  )
virtualinherited
template<class OperatorType, class VectorType , typename ValueType >
void paralution::Solver< OperatorType, VectorType, ValueType >::ResetOperator ( const OperatorType &  op)
virtualinherited
template<class OperatorType , class VectorType , typename ValueType >
void paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::Set ( Solver< OperatorType, VectorType, ValueType > &  K_Solver,
Solver< OperatorType, VectorType, ValueType > &  S_Solver 
)
virtual

Referenced by main().

template<class OperatorType, class VectorType , typename ValueType >
void paralution::Solver< OperatorType, VectorType, ValueType >::SetOperator ( const OperatorType &  op)
inherited
template<class OperatorType , class VectorType , typename ValueType >
void paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::Solve ( const VectorType &  rhs,
VectorType *  x 
)
virtual
template<class OperatorType , class VectorType, typename ValueType >
void paralution::Preconditioner< OperatorType, VectorType, ValueType >::SolveZeroSol ( const VectorType &  rhs,
VectorType *  x 
)
virtualinherited

Solve Operator x = rhs; but set first the init x = 0.

Reimplemented from paralution::Solver< OperatorType, VectorType, ValueType >.

template<class OperatorType , class VectorType , typename ValueType >
void paralution::Solver< OperatorType, VectorType, ValueType >::Verbose ( const int  verb = 1)
virtualinherited

Field Documentation

template<class OperatorType, class VectorType, typename ValueType>
OperatorType paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::A_
protected

A_ is decomposed into $ [K_, F_; E_, 0] $, where.

template<class OperatorType, class VectorType, typename ValueType>
bool paralution::Solver< OperatorType, VectorType, ValueType >::build_
protectedinherited

Flag == true after building the solver (e.g. Build())

size_t paralution::ParalutionObj::global_obj_id
protectedinherited
template<class OperatorType, class VectorType, typename ValueType>
OperatorType paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::K_
protected
template<class OperatorType, class VectorType, typename ValueType>
int paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::K_nnz_
protected
template<class OperatorType, class VectorType, typename ValueType>
int paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::K_nrow_
protected

The sizes of the K_ matrix.

template<class OperatorType, class VectorType, typename ValueType>
Solver<OperatorType, VectorType, ValueType>* paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::K_solver_
protected
template<class OperatorType, class VectorType, typename ValueType>
const OperatorType* paralution::Solver< OperatorType, VectorType, ValueType >::op_
protectedinherited

Pointer to the operator.

template<class OperatorType, class VectorType, typename ValueType>
bool paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::op_mat_format_
protected

Keep the precond matrix in CSR or not.

template<class OperatorType, class VectorType, typename ValueType>
LocalVector<int> paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::permutation_
protected
template<class OperatorType, class VectorType, typename ValueType>
Solver<OperatorType, VectorType, ValueType>* paralution::Solver< OperatorType, VectorType, ValueType >::precond_
protectedinherited

Pointer to the defined preconditioner.

template<class OperatorType, class VectorType, typename ValueType>
unsigned int paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::precond_mat_format_
protected

Precond matrix format.

template<class OperatorType, class VectorType, typename ValueType>
VectorType paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::rhs_
protected
template<class OperatorType, class VectorType, typename ValueType>
VectorType paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::rhs_1_
protected
template<class OperatorType, class VectorType, typename ValueType>
VectorType paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::rhs_2_
protected
template<class OperatorType, class VectorType, typename ValueType>
OperatorType paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::S_
protected
template<class OperatorType, class VectorType, typename ValueType>
Solver<OperatorType, VectorType, ValueType>* paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::S_solver_
protected
template<class OperatorType, class VectorType, typename ValueType>
int paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::size_
protected
template<class OperatorType, class VectorType, typename ValueType>
int paralution::Solver< OperatorType, VectorType, ValueType >::verb_
protectedinherited

Verbose flag verb == 0 no output verb == 1 print info about the solver (start,end); verb == 2 print (iter, residual) via iteration control;.

template<class OperatorType, class VectorType, typename ValueType>
VectorType paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::x_
protected
template<class OperatorType, class VectorType, typename ValueType>
VectorType paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::x_1_
protected
template<class OperatorType, class VectorType, typename ValueType>
VectorType paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::x_1tmp_
protected
template<class OperatorType, class VectorType, typename ValueType>
VectorType paralution::DiagJacobiSaddlePointPrecond< OperatorType, VectorType, ValueType >::x_2_
protected

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