PaStiX Handbook  6.3.2
cost.h
Go to the documentation of this file.
1 /**
2  *
3  * @file cost.h
4  *
5  * PaStiX analyse headers for the cost matrix arrays functions.
6  *
7  * @copyright 1998-2023 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
8  * Univ. Bordeaux. All rights reserved.
9  *
10  * @version 6.3.2
11  * @author Pascal Henon
12  * @author Mathieu Faverge
13  * @author Xavier Lacoste
14  * @date 2023-07-21
15  *
16  * @addtogroup blend_dev_cost
17  * @{
18  * This module contains all subroutines to initialize the cost arrays for a
19  * single matrix that will be used in the proportionnal mapping algorithm, as
20  * well as the simulation of the numerical factorization that defines the
21  * final mapping.
22  *
23  **/
24 #ifndef _cost_h_
25 #define _cost_h_
26 
27 /**
28  * @brief Arrays of double to store the cost of each element in the matrix
29  */
30 typedef struct cost_matrix_s {
31  double *blokcost; /**< Cost of the update generated by this block
32  for off-diagonal block, fact+solve otherwise */
33  double *cblkcost; /**< Cost of all the operations linked to a panel */
35 
36 void costMatrixInit ( CostMatrix *costmtx );
37 void costMatrixExit ( CostMatrix *costmtx );
39  pastix_coeftype_t flttype,
40  pastix_factotype_t factotype );
41 
42 #endif /* _cost_h_ */
43 
44 /**
45  * @}
46  */
double * cblkcost
Definition: cost.h:33
double * blokcost
Definition: cost.h:31
void costMatrixInit(CostMatrix *costmtx)
Initialize the cost matrix structure.
Definition: cost.c:38
void costMatrixExit(CostMatrix *costmtx)
Free the cost matrix structure.
Definition: cost.c:57
CostMatrix * costMatrixBuild(const symbol_matrix_t *symbmtx, pastix_coeftype_t flttype, pastix_factotype_t factotype)
Build the cost matrix structure from the symbol matrix structure.
Definition: cost.c:91
struct cost_matrix_s CostMatrix
Arrays of double to store the cost of each element in the matrix.
Arrays of double to store the cost of each element in the matrix.
Definition: cost.h:30
spm_coeftype_t pastix_coeftype_t
Arithmetic types.
Definition: api.h:294
enum pastix_factotype_e pastix_factotype_t
Factorization algorithms available for IPARM_FACTORIZATION parameter.
Symbol matrix structure.
Definition: symbol.h:77