SuperLU 7.0.0
|
Utility functions. More...
Macros | |
#define | NBUCKS 10 |
Get the statistics of the supernodes. More... | |
Functions | |
void | superlu_abort_and_exit (char *msg) |
Print message to error stream and exit program. More... | |
void | set_default_options (superlu_options_t *options) |
Set the default values for the options argument. More... | |
void | ilu_set_default_options (superlu_options_t *options) |
Set the default values for the options argument for ILU. More... | |
void | print_options (superlu_options_t *options) |
Print the options setting. More... | |
void | print_ilu_options (superlu_options_t *options) |
Print the options setting. More... | |
void | Destroy_SuperMatrix_Store (SuperMatrix *A) |
Deallocate SuperMatrix. More... | |
void | Destroy_CompCol_Matrix (SuperMatrix *A) |
Deallocate SuperMatrix of type NC. More... | |
void | Destroy_CompRow_Matrix (SuperMatrix *A) |
Deallocate SuperMatrix of type NR. More... | |
void | Destroy_SuperNode_Matrix (SuperMatrix *A) |
Deallocate SuperMatrix of type SC. More... | |
void | Destroy_CompCol_Permuted (SuperMatrix *A) |
Deallocate SuperMatrix of type NCP. More... | |
void | Destroy_Dense_Matrix (SuperMatrix *A) |
Deallocate SuperMatrix of type DN. More... | |
void | resetrep_col (const int nseg, const int *segrep, int *repfnz) |
Reset repfnz[] for the current column. More... | |
void | countnz (const int n, int_t *xprune, int_t *nnzL, int_t *nnzU, GlobalLU_t *Glu) |
Count the total number of nonzeros in factors L and U, and in the symmetrically reduced L. More... | |
void | ilu_countnz (const int n, int_t *nnzL, int_t *nnzU, GlobalLU_t *Glu) |
Count the total number of nonzeros in factors L and U. More... | |
void | fixupL (const int n, const int *perm_r, GlobalLU_t *Glu) |
Fix up the data storage lsub for L-subscripts. More... | |
void | print_panel_seg (int n, int w, int jcol, int nseg, int *segrep, int *repfnz) |
Diagnostic print of segment info after panel_dfs(). More... | |
void | StatInit (SuperLUStat_t *stat) |
Initialize SuperLU stat. More... | |
void | StatPrint (SuperLUStat_t *stat) |
Display SuperLU stat. More... | |
void | StatFree (SuperLUStat_t *stat) |
Deallocate SuperLU stat. More... | |
flops_t | LUFactFlops (SuperLUStat_t *stat) |
Get operations for LU factorization. More... | |
flops_t | LUSolveFlops (SuperLUStat_t *stat) |
Get operations for LU solve. More... | |
void | ifill (int *a, int alen, int ival) |
Fills an integer array with a given value. More... | |
void | super_stats (int nsuper, int *xsup) |
float | SpaSize (int n, int np, float sum_npw) |
float | DenseSize (int n, float sum_nw) |
void | check_repfnz (int n, int w, int jcol, int *repfnz) |
Check whether repfnz[] == EMPTY after reset. More... | |
void | PrintSumm (char *type, int nfail, int nrun, int nerrs) |
Print a summary of the testing results. More... | |
void | print_int_vec (char *what, int n, int *vec) |
Print content of int array. More... | |
void | slu_PrintInt10 (char *name, int len, int *x) |
Print content of int array with index numbers after every tenth row. More... | |
void | check_perm (char *what, int n, int *perm) |
Validity check of a permutation. More... | |
#define NBUCKS 10 |
void check_perm | ( | char * | what, |
int | n, | ||
int * | perm | ||
) |
[in] | what | String to be printed as part of displayed text for success or error. |
[in] | n | Number of elements in permutation perm. |
[in] | perm | Array describing the permutation. |
void check_repfnz | ( | int | n, |
int | w, | ||
int | jcol, | ||
int * | repfnz | ||
) |
void countnz | ( | const int | n, |
int_t * | xprune, | ||
int_t * | nnzL, | ||
int_t * | nnzU, | ||
GlobalLU_t * | Glu | ||
) |
float DenseSize | ( | int | n, |
float | sum_nw | ||
) |
void Destroy_CompCol_Matrix | ( | SuperMatrix * | A | ) |
Deallocate the structure pointing to the actual storage of the matrix.
[in,out] | A | Deallocate all memory of this SuperMatrix of type NC. |
void Destroy_CompCol_Permuted | ( | SuperMatrix * | A | ) |
Deallocate the structure pointing to the actual storage of the matrix.
[in,out] | A | Deallocate all memory of this SuperMatrix of type NCP. |
void Destroy_CompRow_Matrix | ( | SuperMatrix * | A | ) |
Deallocate the structure pointing to the actual storage of the matrix.
[in,out] | A | Deallocate all memory of this SuperMatrix of type NR. |
void Destroy_Dense_Matrix | ( | SuperMatrix * | A | ) |
Deallocate the structure pointing to the actual storage of the matrix.
[in,out] | A | Deallocate all memory of this SuperMatrix of type DN. |
void Destroy_SuperMatrix_Store | ( | SuperMatrix * | A | ) |
Deallocate the structure pointing to the actual storage of the matrix.
[in,out] | A | Deallocate all memory of this SuperMatrix. |
void Destroy_SuperNode_Matrix | ( | SuperMatrix * | A | ) |
Deallocate the structure pointing to the actual storage of the matrix.
[in,out] | A | Deallocate all memory of this SuperMatrix of type SC. |
void fixupL | ( | const int | n, |
const int * | perm_r, | ||
GlobalLU_t * | Glu | ||
) |
It removes the subscript sets for structural pruning, and applies permutation to the remaining subscripts.
void ifill | ( | int * | a, |
int | alen, | ||
int | ival | ||
) |
[in,out] | a | Integer array that is filled. |
[in] | alen | Length of integer array a. |
[in] | ival | Value to be filled in every element of a. |
void ilu_countnz | ( | const int | n, |
int_t * | nnzL, | ||
int_t * | nnzU, | ||
GlobalLU_t * | Glu | ||
) |
void ilu_set_default_options | ( | superlu_options_t * | options | ) |
[out] | options | Options struct that is filled with default values. |
flops_t LUFactFlops | ( | SuperLUStat_t * | stat | ) |
Read out number of operations (ops) needed for LU factorization.
[in] | stat | SuperLU stat used to read out the opts. |
flops_t LUSolveFlops | ( | SuperLUStat_t * | stat | ) |
Read out number of operations (ops) needed for LU solve.
[in] | stat | SuperLU stat used to read out the opts. |
void print_ilu_options | ( | superlu_options_t * | options | ) |
[in] | options | Options struct that is printed. |
void print_int_vec | ( | char * | what, |
int | n, | ||
int * | vec | ||
) |
[in] | what | Vector name that is printed first. |
[in] | n | Number of elements in array. |
[in] | vec | Array of ints to be printed |
void print_options | ( | superlu_options_t * | options | ) |
[in] | options | Options struct that is printed. |
void print_panel_seg | ( | int | n, |
int | w, | ||
int | jcol, | ||
int | nseg, | ||
int * | segrep, | ||
int * | repfnz | ||
) |
void PrintSumm | ( | char * | type, |
int | nfail, | ||
int | nrun, | ||
int | nerrs | ||
) |
[in] | type | Array with three chars indicating the type for that the tests were run like "CGE" or "DGE". |
[in] | nfail | Number of failed tests. |
[in] | nrun | Number of tests run. |
[in] | nerrs | Number of error messages recorded. |
void resetrep_col | ( | const int | nseg, |
const int * | segrep, | ||
int * | repfnz | ||
) |
void set_default_options | ( | superlu_options_t * | options | ) |
[in,out] | options | Options struct that is filled with default values. |
void slu_PrintInt10 | ( | char * | name, |
int | len, | ||
int * | x | ||
) |
Print all elements of an int array. After ten rows the index is printed to make it more readable for humans.
[in] | name | Vector name that is printed first. |
[in] | len | Number of elements in array. |
[in] | x | Array of ints to be printed. |
float SpaSize | ( | int | n, |
int | np, | ||
float | sum_npw | ||
) |
void StatFree | ( | SuperLUStat_t * | stat | ) |
Deallocate the structure pointing to the actual storage of SuperLU stat.
[in,out] | stat | Deallocate all memory of this SuperLU stat |
void StatInit | ( | SuperLUStat_t * | stat | ) |
[in,out] | stat | SuperLU stat that is initialized. |
void StatPrint | ( | SuperLUStat_t * | stat | ) |
Print content of SuperLU stat to output.
[in] | stat | Display this SuperLU stat |
void super_stats | ( | int | nsuper, |
int * | xsup | ||
) |
void superlu_abort_and_exit | ( | char * | msg | ) |
[in] | mgs | Message that is printed to error stream. |