CMR  1.3.0
one_sum.h
Go to the documentation of this file.
1 #ifndef CMR_ONESUM_INTERNAL_H
2 #define CMR_ONESUM_INTERNAL_H
3 
4 #include <cmr/env.h>
5 #include "matrix_internal.h"
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
15 typedef struct
16 {
19  size_t* rowsToOriginal;
22 
31  CMR* cmr,
32  CMR_MATRIX* matrix,
33  size_t matrixType,
34  size_t targetType,
35  size_t* pnumComponents,
36  CMR_ONESUM_COMPONENT** components,
37  size_t* rowsToComponents,
38  size_t* columnsToComponents,
39  size_t* rowsToComponentRows,
40  size_t* columnsToComponentColumns
41 );
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
47 #endif /* CMR_ONESUM_INTERNAL_H */
Basic functionality of the software library.
CMR_ERROR
Type for return codes of library functions.
Definition: env.h:31
CMR_ERROR decomposeOneSum(CMR *cmr, CMR_MATRIX *matrix, size_t matrixType, size_t targetType, size_t *pnumComponents, CMR_ONESUM_COMPONENT **components, size_t *rowsToComponents, size_t *columnsToComponents, size_t *rowsToComponentRows, size_t *columnsToComponentColumns)
Decomposes int matrix into 1-connected submatrices.
Definition: one_sum.c:21
Definition: env_internal.h:45
Abstract struct for row-wise representations of sparse matrices.
Definition: matrix_internal.h:15
Information on component of 1-sum of matrices.
Definition: one_sum.h:16
size_t * rowsToOriginal
Maps component rows to original matrix rows.
Definition: one_sum.h:19
CMR_MATRIX * matrix
Sparse matrix.
Definition: one_sum.h:17
size_t * columnsToOriginal
Maps component columns to original matrix columns.
Definition: one_sum.h:20
CMR_MATRIX * transpose
Sparse transposed matrix.
Definition: one_sum.h:18