|
kusano |
7d535a |
|
|
kusano |
7d535a |
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
|
|
kusano |
7d535a |
<title>SuperLU: SRC/slu_util.h File Reference</title>
|
|
kusano |
7d535a |
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
kusano |
7d535a |
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Main Page
|
|
kusano |
7d535a |
Data Structures
|
|
kusano |
7d535a |
Files
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
SRC/slu_util.h File ReferenceUtility header file. More...
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#include <stdio.h>
|
|
kusano |
7d535a |
#include <stdlib.h>
|
|
kusano |
7d535a |
#include <string.h>
|
|
kusano |
7d535a |
#include <assert.h>
|
|
kusano |
7d535a |
#include "superlu_enum_consts.h"
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Go to the source code of this file.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Data Structures
|
|
kusano |
7d535a |
struct superlu_options_t
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
struct e_node
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Headers for 4 types of dynamatically managed memory. More...
|
|
kusano |
7d535a |
struct LU_stack_t
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
struct SuperLUStat_t
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
struct mem_usage_t
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Defines
|
|
kusano |
7d535a |
#define FIRSTCOL_OF_SNODE(i) (xsup[i])
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define NO_MARKER 3
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define NUM_TEMPV(m, w, t, b) ( SUPERLU_MAX(m, (t + b)*w) )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define USER_ABORT(msg) superlu_abort_and_exit(msg)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define ABORT(err_msg)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define USER_MALLOC(size) superlu_malloc(size)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define SUPERLU_MALLOC(size) USER_MALLOC(size)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define USER_FREE(addr) superlu_free(addr)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define SUPERLU_FREE(addr) USER_FREE(addr)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define CHECK_MALLOC(where)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define SUPERLU_MAX(x, y) ( (x) > (y) ? (x) : (y) )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define SUPERLU_MIN(x, y) ( (x) < (y) ? (x) : (y) )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define L_SUB_START(col) ( Lstore->rowind_colptr[col] )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define L_SUB(ptr) ( Lstore->rowind[ptr] )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define L_NZ_START(col) ( Lstore->nzval_colptr[col] )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define L_FST_SUPC(superno) ( Lstore->sup_to_col[superno] )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define U_NZ_START(col) ( Ustore->colptr[col] )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define U_SUB(ptr) ( Ustore->rowind[ptr] )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define EMPTY (-1)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define FALSE 0
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define TRUE 1
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define NO_MEMTYPE 4
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define GluIntArray(n) (5 * (n) + 5)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define NODROP ( 0x0000 )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define DROP_BASIC ( 0x0001 )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define DROP_PROWS ( 0x0002 )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define DROP_COLUMN ( 0x0004 )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define DROP_AREA ( 0x0008 )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define DROP_SECONDARY ( 0x000E )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define DROP_DYNAMIC ( 0x0010 )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define DROP_INTERP ( 0x0100 )
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define MILU_ALPHA (1.0e-2)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Typedefs
|
|
kusano |
7d535a |
typedef float flops_t
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
typedef unsigned char Logical
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
typedef struct e_node ExpHeader
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Functions
|
|
kusano |
7d535a |
void Destroy_SuperMatrix_Store (SuperMatrix *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Deallocate the structure pointing to the actual storage of the matrix.
|
|
kusano |
7d535a |
void Destroy_CompCol_Matrix (SuperMatrix *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void Destroy_CompRow_Matrix (SuperMatrix *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void Destroy_SuperNode_Matrix (SuperMatrix *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void Destroy_CompCol_Permuted (SuperMatrix *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
A is of type Stype==NCP.
|
|
kusano |
7d535a |
void Destroy_Dense_Matrix (SuperMatrix *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
A is of type Stype==DN.
|
|
kusano |
7d535a |
void get_perm_c (int, SuperMatrix *, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void set_default_options (superlu_options_t *options)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Set the default values for the options argument.
|
|
kusano |
7d535a |
void ilu_set_default_options (superlu_options_t *options)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Set the default values for the options argument for ILU.
|
|
kusano |
7d535a |
void sp_preorder (superlu_options_t *, SuperMatrix *, int *, int *, SuperMatrix *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void superlu_abort_and_exit (char *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Global statistics variale.
|
|
kusano |
7d535a |
void * superlu_malloc (size_t)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
int * intMalloc (int)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
int * intCalloc (int)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void superlu_free (void *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void SetIWork (int, int, int, int *, int **, int **, int **, int **, int **, int **, int **)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Set up pointers for integer working arrays.
|
|
kusano |
7d535a |
int sp_coletree (int *, int *, int *, int, int, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void relax_snode (const int, int *, const int, int *, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void heap_relax_snode (const int, int *, const int, int *, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
int mark_relax (int, int *, int *, int *, int *, int *, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void ilu_relax_snode (const int, int *, const int, int *, int *, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void ilu_heap_relax_snode (const int, int *, const int, int *, int *, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void resetrep_col (const int, const int *, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Reset repfnz[] for the current column.
|
|
kusano |
7d535a |
int spcoletree (int *, int *, int *, int, int, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
int * TreePostorder (int, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
double SuperLU_timer_ ()
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Timer function.
|
|
kusano |
7d535a |
int sp_ienv (int)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
int lsame_ (char *, char *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
int xerbla_ (char *, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void ifill (int *, int, int)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Fills an integer array with a given value.
|
|
kusano |
7d535a |
void snode_profile (int, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void super_stats (int, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void check_repfnz (int, int, int, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Check whether repfnz[] == EMPTY after reset.
|
|
kusano |
7d535a |
void PrintSumm (char *, int, int, int)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Print a summary of the testing results.
|
|
kusano |
7d535a |
void StatInit (SuperLUStat_t *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void StatPrint (SuperLUStat_t *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void StatFree (SuperLUStat_t *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
void print_panel_seg (int, int, int, int, int *, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Diagnostic print of segment info after panel_dfs().
|
|
kusano |
7d535a |
int print_int_vec (char *, int, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
int slu_PrintInt10 (char *, int, int *)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Detailed Description
|
|
kusano |
7d535a |
-- SuperLU routine (version 4.1) -- Univ. of California Berkeley, Xerox Palo Alto Research Center, and Lawrence Berkeley National Lab. November, 2010
Define Documentation
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define ABORT
|
|
kusano |
7d535a |
(
|
|
kusano |
7d535a |
err_msg
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Value:
|
|
kusano |
7d535a |
sprintf(msg,"%s at line %d in file %s\n",err_msg,__LINE__, __FILE__);\
|
|
kusano |
7d535a |
USER_ABORT(msg); }
|