SpM Handbook 1.2.4
Loading...
Searching...
No Matches
p_spm.h
Go to the documentation of this file.
1/**
2 *
3 * @file p_spm.h
4 *
5 * SParse Matrix package precision dependent header.
6 *
7 * @copyright 2016-2024 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
8 * Univ. Bordeaux. All rights reserved.
9 *
10 * @version 1.2.4
11 * @author Pierre Ramet
12 * @author Mathieu Faverge
13 * @author Alban Bellot
14 * @author Tony Delarue
15 * @author Alycia Lisito
16 * @date 2024-05-29
17 *
18 * @generated from /builds/2mk6rsew/0/fpruvost/spm/include/spm/p_spm.h, normal p -> p, Fri Nov 29 11:34:28 2024
19 *
20 * @addtogroup spm_dev_convert
21 * @{
22 *
23 **/
24#ifndef _p_spm_h_
25#define _p_spm_h_
26
27/**
28 * @brief Conversion routines
29 */
36
37/**
38 * @}
39 * @addtogroup spm_dev_check
40 * @{
41 *
42 * @brief Extra routines
43 */
44void p_spmSort( spmatrix_t *spm );
46
47/**
48 * @}
49 * @addtogroup spm_dev_print
50 * @{
51 *
52 * @brief Output routines
53 */
54void p_spmPrint( FILE *f,
55 const spmatrix_t *spm );
56void p_spmPrintRHS( FILE *f,
57 const spmatrix_t *spm,
58 int nrhs,
59 const void *x,
60 spm_int_t ldx );
61
62/**
63 * @}
64 * @addtogroup spm_dev_dof
65 * @{
66 *
67 * @brief DOF routines
68 */
69void p_spmExpand( const spmatrix_t *spm_in,
70 spmatrix_t *spm_out );
71
72/**
73 * @}
74 */
75#endif /* _p_spm_h_ */
spm_int_t p_spmMergeDuplicate(spmatrix_t *spm)
This routine merge the multiple entries in a sparse matrix by summing their values together.
void p_spmSort(spmatrix_t *spm)
This routine sorts the spm matrix.
Definition p_spm_sort.c:303
int p_spmConvertIJV2CSR(spmatrix_t *spm)
convert a matrix in IJV format to a matrix in CSR format.
int p_spmConvertCSR2CSC(spmatrix_t *spm)
convert a matrix in CSR format to a matrix in CSC format.
int p_spmConvertCSR2IJV(spmatrix_t *spm)
convert a matrix in CSR format to a matrix in IJV format.
int p_spmConvertCSC2CSR(spmatrix_t *spm)
Conversion routines.
int p_spmConvertIJV2CSC(spmatrix_t *spm)
convert a matrix in IJV format to a matrix in CSC format.
int p_spmConvertCSC2IJV(spmatrix_t *spm)
Convert a matrix in CSC format to a matrix in IJV format.
void p_spmExpand(const spmatrix_t *spm_in, spmatrix_t *spm_out)
Expand a single dof sparse matrix to a multi-dofs sparse matrix.
void p_spmPrint(FILE *f, const spmatrix_t *spm)
Write a spm matrix in a file.
void p_spmPrintRHS(FILE *f, const spmatrix_t *spm, int nrhs, const void *x, spm_int_t ldx)
Write into a file the vectors associated to a spm.
int spm_int_t
The main integer datatype used in spm arrays.
Definition datatypes.h:70
The sparse matrix data structure.
Definition spm.h:64