CMR  1.3.0
Typedefs | Functions
hereditary_property.h File Reference
#include <cmr/env.h>
#include "env_internal.h"
#include <cmr/matrix.h>
#include <cmr/element.h>

Go to the source code of this file.

Typedefs

typedef CMR_ERROR(* HereditaryPropertyTest) (CMR *cmr, CMR_CHRMAT *matrix, void *data, bool *phasProperty, CMR_SUBMAT **psubmatrix, double timeLimit)
 

Functions

CMR_ERROR CMRtestHereditaryPropertyNaive (CMR *cmr, CMR_CHRMAT *matrix, HereditaryPropertyTest testFunction, void *testData, CMR_SUBMAT **psubmatrix, double timeLimit)
 Tests a given matrix for the hereditary property defined by a given testFunction. More...
 
CMR_ERROR CMRtestHereditaryPropertyGreedy (CMR *cmr, CMR_CHRMAT *matrix, HereditaryPropertyTest testFunction, void *testData, CMR_SUBMAT **psubmatrix, double timeLimit)
 Greedily tests a given matrix for the hereditary property defined by a given testFunction. More...
 

Typedef Documentation

◆ HereditaryPropertyTest

typedef CMR_ERROR(* HereditaryPropertyTest) (CMR *cmr, CMR_CHRMAT *matrix, void *data, bool *phasProperty, CMR_SUBMAT **psubmatrix, double timeLimit)

Function pointer for functions that test a hereditary matrix property.

Parameters
cmrCMR environment.
matrixSome matrix to be tested for the property.
dataPotential additional data for the test function.
phasPropertyPointer for storing whether matrix has the property.
psubmatrixPointer for storing a proper submatrix of matrix without the property.
timeLimitTime limit to impose.

Function Documentation

◆ CMRtestHereditaryPropertyGreedy()

CMR_ERROR CMRtestHereditaryPropertyGreedy ( CMR cmr,
CMR_CHRMAT matrix,
HereditaryPropertyTest  testFunction,
void *  testData,
CMR_SUBMAT **  psubmatrix,
double  timeLimit 
)

Greedily tests a given matrix for the hereditary property defined by a given testFunction.

The algorithm finds the submatrix by successively zeroing out sets of rows or columns.

Parameters
cmrCMR environment.
matrixSome matrix not having the hereditary property.
testFunctionTest function.
testDataData to be forwarded to the test function.
psubmatrixPointer for storing a minimal submatrix not having the property.
timeLimitTime limit to impose.

◆ CMRtestHereditaryPropertyNaive()

CMR_ERROR CMRtestHereditaryPropertyNaive ( CMR cmr,
CMR_CHRMAT matrix,
HereditaryPropertyTest  testFunction,
void *  testData,
CMR_SUBMAT **  psubmatrix,
double  timeLimit 
)

Tests a given matrix for the hereditary property defined by a given testFunction.

The algorithm finds the submatrix by successively single zeroing out rows or columns.

Parameters
cmrCMR environment.
matrixSome matrix not having the hereditary property.
testFunctionTest function.
testDataData to be forwarded to the test function.
psubmatrixPointer for storing a minimal submatrix not having the property.
timeLimitTime limit to impose.