104 size_t* pivotColumns,
121 size_t* pivotColumns,
Basic functionality of the software library.
CMR_ERROR
Type for return codes of library functions.
Definition env.h:32
Functionality for graphs.
CMR_EXPORT CMR_ERROR CMRminorCreate(CMR *cmr, CMR_MINOR **pminor, size_t numPivots, CMR_SUBMAT *submatrix, CMR_MINOR_TYPE type)
Creates a minor, allocating space for numPivots pivots and a remaining submatrix.
Definition matroid.c:382
CMR_EXPORT CMR_ERROR CMRchrmatTernaryPivot(CMR *cmr, CMR_CHRMAT *matrix, size_t pivotRow, size_t pivotColumn, CMR_CHRMAT **presult)
Applies a pivot to matrix and returns the resulting matrix in *presult.
Definition matroid.c:316
CMR_EXPORT CMR_ERROR CMRchrmatBinaryPivots(CMR *cmr, CMR_CHRMAT *matrix, size_t numPivots, size_t *pivotRows, size_t *pivotColumns, CMR_CHRMAT **presult)
Applies a sequence of pivots to matrix and returns the resulting matrix in *presult.
Definition matroid.c:339
CMR_EXPORT CMR_ERROR CMRchrmatRegularPivot(CMR *cmr, CMR_CHRMAT *matrix, size_t pivotRow, size_t pivotColumn, CMR_SUBMAT **pviolator, CMR_CHRMAT **presult)
Applies a pivot to matrix and returns the resulting matrix in *presult.
Definition matroid.c:327
CMR_EXPORT CMR_ERROR CMRchrmatTernaryPivots(CMR *cmr, CMR_CHRMAT *matrix, size_t numPivots, size_t *pivotRows, size_t *pivotColumns, CMR_CHRMAT **presult)
Applies a sequence of pivots to matrix and returns the resulting matrix in *presult.
Definition matroid.c:353
CMR_EXPORT CMR_SUBMAT * CMRminorSubmatrix(CMR_MINOR *minor)
Returns the submatrix to take (after applying pivots) to make a minor visible.
Definition matroid.c:449
CMR_EXPORT CMR_ERROR CMRchrmatBinaryPivot(CMR *cmr, CMR_CHRMAT *matrix, size_t pivotRow, size_t pivotColumn, CMR_CHRMAT **presult)
Apply a pivot to matrix and returns the resulting matrix in *presult.
Definition matroid.c:305
CMR_EXPORT CMR_ERROR CMRminorPrint(CMR *cmr, CMR_MINOR *minor, size_t numRows, size_t numColumns, FILE *stream)
Writes the minor minor to stream by means of lists of row and column indices as well as pivot entries...
Definition matroid.c:456
CMR_EXPORT CMR_ERROR CMRminorWriteToFile(CMR *cmr, CMR_MINOR *minor, size_t numRows, size_t numColumns, const char *fileName)
Writes the minor minor to the file fileName by means of lists of row and column indices as well as pi...
Definition matroid.c:468
CMR_EXPORT size_t CMRminorNumPivots(CMR_MINOR *minor)
Returns the number of pivots needed to make a minor visible.
Definition matroid.c:428
CMR_EXPORT CMR_ERROR CMRchrmatRegularPivots(CMR *cmr, CMR_CHRMAT *matrix, size_t numPivots, size_t *pivotRows, size_t *pivotColumns, CMR_SUBMAT **pviolator, CMR_CHRMAT **presult)
Applies a sequence of pivots to matrix and returns the resulting matrix in *presult.
Definition matroid.c:367
CMR_EXPORT CMR_ERROR CMRminorFree(CMR *cmr, CMR_MINOR **pminor)
Frees the minor *pminor (if pminor is not NULL).
Definition matroid.c:404
CMR_EXPORT CMR_MINOR_TYPE CMRminorType(CMR_MINOR *minor)
Returns the type of minor.
Definition matroid.c:421
CMR_EXPORT size_t * CMRminorPivotColumns(CMR_MINOR *minor)
Returns the array with pivot columns to make a minor visible.
Definition matroid.c:442
CMR_EXPORT size_t * CMRminorPivotRows(CMR_MINOR *minor)
Returns the array with pivot rows to make a minor visible.
Definition matroid.c:435
CMR_MINOR_TYPE
Definition matroid.h:127
@ CMR_MINOR_TYPE_U24
Definition matroid.h:134
@ CMR_MINOR_TYPE_K5_DUAL
Definition matroid.h:142
@ CMR_MINOR_TYPE_ENTRY
Definition matroid.h:130
@ CMR_MINOR_TYPE_FANO_DUAL
Definition matroid.h:138
@ CMR_MINOR_TYPE_K5
Definition matroid.h:140
@ CMR_MINOR_TYPE_K33
Definition matroid.h:144
@ CMR_MINOR_TYPE_DETERMINANT
Definition matroid.h:128
@ CMR_MINOR_TYPE_K33_DUAL
Definition matroid.h:146
@ CMR_MINOR_TYPE_CUSTOM
Definition matroid.h:132
@ CMR_MINOR_TYPE_FANO
Definition matroid.h:136
Functionality for sparse matrices.
Row-wise representation of sparse char matrix.
Definition matrix.h:235
Definition env_internal.h:45
A minor of a matroid.
Definition matroid.h:157
size_t * pivotColumns
Definition matroid.h:160
size_t numPivots
Definition matroid.h:158
CMR_SUBMAT * remainingSubmatrix
Definition matroid.h:161
size_t * pivotRows
Definition matroid.h:159
CMR_MINOR_TYPE type
Definition matroid.h:162
Row and column indices for a submatrix.
Definition matrix.h:28