CMR  1.3.0
Classes | Functions
matrix_internal.h File Reference
#include <cmr/matrix.h>

Go to the source code of this file.

Classes

struct  CMR_MATRIX
 Abstract struct for row-wise representations of sparse matrices. More...
 

Functions

CMR_ERROR CMRsortSubmatrix (CMR *cmr, CMR_SUBMAT *submatrix)
 Sorts the row and column indices of submatrix. More...
 
CMR_ERROR CMRchrmatFilter (CMR *cmr, CMR_CHRMAT *matrix, size_t numRows, size_t *rows, size_t numColumns, size_t *columns, CMR_CHRMAT **presult)
 Creates a numRows \( \times \) numColumns submatrix of the char matrix indexed by rows and columns. More...
 

Function Documentation

◆ CMRchrmatFilter()

CMR_ERROR CMRchrmatFilter ( CMR cmr,
CMR_CHRMAT matrix,
size_t  numRows,
size_t *  rows,
size_t  numColumns,
size_t *  columns,
CMR_CHRMAT **  presult 
)

Creates a numRows \( \times \) numColumns submatrix of the char matrix indexed by rows and columns.

Parameters
cmrCMR environment.
matrixMatrix.
numRowsNumber of rows of submatrix.
rowsRows of matrix to be copied into the submatrix.
numColumnsNumber of columns of submatrix.
columnsColumns of matrix to be copied into the submatrix.
presultPointer for storing the created submatrix.

◆ CMRsortSubmatrix()

CMR_ERROR CMRsortSubmatrix ( CMR cmr,
CMR_SUBMAT submatrix 
)

Sorts the row and column indices of submatrix.

Parameters
cmrCMR environment.
submatrixThe submatrix.