PaStiX Handbook
6.3.2
|
Go to the source code of this file.
Functions | |
static void | solver_copy (const SolverMatrix *solvin, SolverMatrix *solvout, pastix_coeftype_t flttype) |
Copy the solver matrix data structure from solvin to solvout. More... | |
SolverMatrix * | solverCopy (const SolverMatrix *solvin, pastix_coeftype_t flttype) |
Generate a copy of a solver matrix structure. More... | |
void | solverRealloc (SolverMatrix *solvmtx) |
Realloc in a contiguous way a given solver structure. More... | |
PaStiX solver matrix copy and reallocation functions.
Definition in file solver_copy.c.
|
inlinestatic |
Copy the solver matrix data structure from solvin to solvout.
Every data is copied, event the coefficient if they are allocated and initialized. It is also used to reallocate the data in a contiguous way after the initialization that allocates all internal arrays in multiple step which might results in fragmentation.
[in] | solvin | The solver matrix structure to duplicate. |
[out] | solvout | The allocated pointer to the solver matrix structure that will contain the copy. |
[in] | flttype | The floating point arithmetic used in the input solver matrix to know the size of the memory space to duplicate for the coefficients. |
Definition at line 51 of file solver_copy.c.
References solver_matrix_s::bloknbr, solver_matrix_s::bloktab, solver_matrix_s::brownbr, solver_matrix_s::browtab, cblk_colnbr(), solver_matrix_s::cblknbr, solver_matrix_s::cblktab, solver_cblk_s::cblktype, solver_cblk_s::fblokptr, solver_matrix_s::gcbl2loc, solver_matrix_s::gcblknbr, solver_cblk_s::lcoeftab, pastix_int_t, solver_cblk_s::stride, and solver_cblk_s::ucoeftab.
Referenced by solverCopy(), and solverRealloc().