stdlib_solve_cg_kernel Interface

public interface stdlib_solve_cg_kernel

Subroutines

private module subroutine stdlib_solve_cg_kernel_dp(A, b, x, rtol, atol, maxiter, workspace)

Arguments

Type IntentOptional Attributes Name
class(stdlib_linop_dp_type), intent(in) :: A

linear operator

real(kind=dp), intent(in) :: b(:)

right-hand side vector

real(kind=dp), intent(inout) :: x(:)

solution vector and initial guess

real(kind=dp), intent(in) :: rtol

relative tolerance for convergence

real(kind=dp), intent(in) :: atol

absolut tolerance for convergence

integer, intent(in) :: maxiter

maximum number of iterations

type(stdlib_solver_workspace_dp_type), intent(inout) :: workspace

workspace for the solver

private module subroutine stdlib_solve_cg_kernel_sp(A, b, x, rtol, atol, maxiter, workspace)

Arguments

Type IntentOptional Attributes Name
class(stdlib_linop_sp_type), intent(in) :: A

linear operator

real(kind=sp), intent(in) :: b(:)

right-hand side vector

real(kind=sp), intent(inout) :: x(:)

solution vector and initial guess

real(kind=sp), intent(in) :: rtol

relative tolerance for convergence

real(kind=sp), intent(in) :: atol

absolut tolerance for convergence

integer, intent(in) :: maxiter

maximum number of iterations

type(stdlib_solver_workspace_sp_type), intent(inout) :: workspace

workspace for the solver