PaStiX Handbook  6.2.1
Schur complement routines

Functions

void pastixSetSchurUnknownList (pastix_data_t *pastix_data, pastix_int_t n, const pastix_int_t *list)
 Set the list of unknowns that belongs to the schur complement. More...
 
int pastixGetSchur (const pastix_data_t *pastix_data, void *S, pastix_int_t lds)
 Return the Schur complement. More...
 

Detailed Description

Function Documentation

◆ pastixSetSchurUnknownList()

void pastixSetSchurUnknownList ( pastix_data_t *  pastix_data,
pastix_int_t  n,
const pastix_int_t *  list 
)

Set the list of unknowns that belongs to the schur complement.

Parameters
[in,out]pastix_dataThe pastix data structure of the solver to store the list of Schur unknowns.
[in]nThe number of unknowns in the Schur complement.
[in]listArray of integer of size n. The list of unknowns belonging to the Schur complement with the same baseval as the associated spm.

Definition at line 49 of file schur.c.

◆ pastixGetSchur()

int pastixGetSchur ( const pastix_data_t *  pastix_data,
void *  S,
pastix_int_t  lds 
)

Return the Schur complement.

The Schur complement is returned in the column major layout used by the classic linear algebra libraries such as Blas or Lapack.

Parameters
[in]pastix_dataThe pastix data structure of the problem solved.
[in,out]SArray of size spm->n -by- lds of arithmetic spm->flttype, where spm is the spm of the original problem. On exit, the array contains the Schur complement of the factorized matrix.
[in]ldsThe leading dimension of the S array.
Return values
PASTIX_SUCCESSon successful exit,
PASTIX_ERR_BADPARAMETERif one parameter is incorrect.

Definition at line 89 of file schur.c.

References PASTIX_ERR_BADPARAMETER.