我要评分
获取效率
正确性
完整性
易理解

KesSolverCreate

Interface Definition

KesReturnCode KesSolverCreate(KesSolver *solver, KesScalarType type, KesSolverAlgorithm algo);

Interface Description

Creates a solver and specifies the data type and solver algorithm.

Parameters

Parameter

Type

Description

Input/Output

solver

KesSolver *

Handle to the solver. It cannot be a null pointer.

Input/Output

type

KesScalarType

Data type.

Input

algo

KesSolverAlgorithm

Solver algorithm.

Input

KesSolverAlgorithm

Description

Application Scenario

KES_LOBPCG

LOBPCG algorithm

The number of eigenvalues to be obtained is small, and a small number of computing nodes are involved.

KES_LOBPCG_BATCH

Batch LOBPCG algorithm

The number of eigenvalues to be obtained is large, the maximum number of iterations is large, and a small number of computing nodes are involved.

KES_PPCG

PPCG algorithm

The number of eigenvalues to be obtained is large, the maximum number of iterations is small, and a large number of computing nodes are involved.

KesScalarType

Description

Corresponding Type in C

KES_SCALAR_FP32

Single-precision floating-point real type

float

KES_SCALAR_FP32C

Single-precision floating-point complex type

float _Complex

KES_SCALAR_FP64

Double-precision floating-point real type

double

KES_SCALAR_FP64C

Double-precision floating-point complex type

double _Complex