NTPoly
Functions/Subroutines
linearsolversmodule Module Reference

Solve the matrix equation AX = B. More...

Functions/Subroutines

subroutine, public cgsolver (AMat, XMat, BMat, solver_parameters_in)
 Solve the matrix equation AX = B using conjugate gradient. More...
 

Detailed Description

Solve the matrix equation AX = B.

Function/Subroutine Documentation

◆ cgsolver()

subroutine, public linearsolversmodule::cgsolver ( type(distributedsparsematrix_t), intent(in)  AMat,
type(distributedsparsematrix_t), intent(inout)  XMat,
type(distributedsparsematrix_t), intent(in)  BMat,
type(iterativesolverparameters_t), intent(in), optional  solver_parameters_in 
)

Solve the matrix equation AX = B using conjugate gradient.

Parameters
[in]AMatthe matrix A, must be symmetric, positive definite.
[out]XMatthe solved for matrix X.
[in]BMatthe right hand side.
[in]solver_parameters_inparameters for the solver