A step-by-step example that runs one full analyze (ordering, symbolic factorization, analyze), then loops over 2 factorizations that are both used for 2 solves each.
More...
A step-by-step example that runs one full analyze (ordering, symbolic factorization, analyze), then loops over 2 factorizations that are both used for 2 solves each.
- Copyright
- 2015-2024 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
- Version
- 6.4.0
- Author
- Mathieu Faverge
-
Pierre Ramet
-
Tony Delarue
-
Alycia Lisito
- Date
- 2024-07-05
/
#include <spm.h>
int main (int argc, char **argv)
{
double dparm[DPARM_SIZE];
spm_driver_t driver;
char *filename = NULL;
spmatrix_t *spm, spm2;
void *x, *b, *x0 = NULL;
size_t size;
int scatter = 0;
int check = 1;
int nrhs = 10;
int nfact = 2;
int nsolv = 2;
long i, j;
for (i = 0; i < nfact; i++)
{
spmScalMat( 1./normA, spm, nrhs, b, spm->nexp );
memcpy( b, x, size );
}
BEGIN_C_DECLS typedef int pastix_int_t
Main PaStiX data structure.
Definition in file step-by-step.c.