Developer Reference for Intel® oneAPI Math Kernel Library for Fortran
dcg_init
Initializes the solver.
Syntax
dcg_init ( n, x, b, RCI_request, ipar, dpar, tmp )
Include Files
Fortran: mkl_rci.fi , mkl_rci.f90
Description
The routine dcg_init initializes the solver. After initialization, all subsequent invocations of the Intel® oneAPI Math Kernel Library (oneMKL) RCI CG routines use the values of all parameters returned by the routine dcg_init . Advanced users can skip this step and set the values in the ipar and dpar arrays directly.
Input Parameters
n
INTEGER . Sets the size of the problem.
x
DOUBLE PRECISION . Array of size n . Contains the initial approximation to the solution vector. Normally it is equal to 0 or to b .
b
DOUBLE PRECISION . Array of size n . Contains the right-hand side vector.
Output Parameters
RCI_request
INTEGER . Gives information about the result of the routine.
ipar
INTEGER . Array of size 128 . Refer to the CG Common Parameters .
dpar
DOUBLE PRECISION . Array of size 128 . Refer to the CG Common Parameters .
tmp
DOUBLE PRECISION . Array of size (n,4) . Refer to the CG Common Parameters .
Return Values
- RCI_request = 0
-
Indicates that the task completed normally.
- RCI_request = -10000
-
Indicates failure to complete the task.