Rate This Document
Findability
Accuracy
Completeness
Readability

KmlScaissCsiSolveDx?I

Solve a system of linear algebra equations. Each process reads and stores its corresponding solution result.

Interface Definition

C interfaces:

int KmlScaissCsiSolveDxSI(KmlScasolverTask **handle, int nb, float *x, int ldx, const float *b, int ldb);

int KmlScaissCsiSolveDxDI(KmlScasolverTask **handle, int nb, double *x, int ldx, const double *b, int ldb);

Parameters

Parameter

Type

Description

Input/Output

handle

KmlScasolverTask **

Solver handle, which is a variable passed from a previous step.

Input/Output

nb

int

Number of RHS vectors. The value of nb can only be 1.

Input

x

  • float * in KmlScaissCsiSolveDxSI
  • double * in KmlScaissCsiSolveDxDI

Array that reads and stores the solution result corresponding to the current process. The number of elements is the number of rows in the matrix corresponding to the current process, that is, stripeWidth.

Input/Output

ldx

int

Size of the leading dimension of x. This is a reserved parameter.

Input

b

  • const float * in KmlScaissCsiSolveDxSI
  • const double * in KmlScaissCsiSolveDxDI

Local RHS array corresponding to the current process. The number of elements is the number of rows in the matrix corresponding to the current process, that is, stripeWidth.

Input

ldb

int

Size of the leading dimension of b. This is a reserved parameter.

Input

Return Value

Return Value

Type

Description

KMLSS_NO_ERROR

int

The execution is successful.

KMLSS_BAD_NB

int

The value of nb is not 1.

KMLSS_NO_MEMORY

int

The memory is insufficient.

KMLSS_NULL_ARGUMENT

int

A null parameter exists in {handle, x, b}.

Dependencies

#include "kml_scaiss.h"

For details about the sample code, see Samples.