PaStiX Handbook  6.3.2
symbol_cost.h
Go to the documentation of this file.
1 /**
2  *
3  * @file symbol_cost.h
4  *
5  * PaStiX cost functions for the symbol structure
6  *
7  * @copyright 2004-2023 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
8  * Univ. Bordeaux. All rights reserved.
9  *
10  * @version 6.3.2
11  * @author David Goudin
12  * @author Francois Pellegrini
13  * @author Mathieu Faverge
14  * @author Pascal Henon
15  * @author Pierre Ramet
16  * @date 2023-07-21
17  *
18  * @addtogroup symbol_dev_cost
19  * @{
20  **/
21 #ifndef _symbol_cost_h_
22 #define _symbol_cost_h_
23 
24 /**
25  * @brief Cost functions to compute statistics on the symbolic structure
26  */
27 typedef struct symbol_function_s {
28  double (*diag )(pastix_int_t); /**< Return a statistic based on the diagonal block */
29  double (*trsm )(pastix_int_t, pastix_int_t); /**< Return a statistic based on the sum of all
30  off-diagonal of each column-block */
31  double (*update )(pastix_int_t, pastix_int_t); /**< Return a statistic for a large accumulated
32  update per column-block */
33  double (*blkupdate)(pastix_int_t, pastix_int_t, pastix_int_t); /**< Return a statistic for each individual
34  off-diagonal block */
36 
37 /**
38  * @brief array of pointer to the flops functions per factorization and arithmetic
39  */
40 extern symbol_function_t flopstable[2][5];
41 /**
42  * @brief array of pointer to the performance functions per factorization and arithmetic
43  */
44 extern symbol_function_t perfstable[2][5];
45 
46 /**
47  * @}
48  */
49 #endif /* _symbol_cost_h_ */
BEGIN_C_DECLS typedef int pastix_int_t
Definition: datatypes.h:51
double(* update)(pastix_int_t, pastix_int_t)
Definition: symbol_cost.h:31
double(* trsm)(pastix_int_t, pastix_int_t)
Definition: symbol_cost.h:29
double(* diag)(pastix_int_t)
Definition: symbol_cost.h:28
double(* blkupdate)(pastix_int_t, pastix_int_t, pastix_int_t)
Definition: symbol_cost.h:33
symbol_function_t flopstable[2][5]
array of pointer to the flops functions per factorization and arithmetic
struct symbol_function_s symbol_function_t
Cost functions to compute statistics on the symbolic structure.
symbol_function_t perfstable[2][5]
array of pointer to the performance functions per factorization and arithmetic
Cost functions to compute statistics on the symbolic structure.
Definition: symbol_cost.h:27