Go to the source code of this file.
|
| 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.
|
| |
| 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.
|
| |
◆ HereditaryPropertyTest
Function pointer for functions that test a hereditary matrix property.
- Parameters
-
| cmr | CMR environment. |
| matrix | Some matrix to be tested for the property. |
| data | Potential additional data for the test function. |
| phasProperty | Pointer for storing whether matrix has the property. |
| psubmatrix | Pointer for storing a proper submatrix of matrix without the property. |
| timeLimit | Time limit to impose. |
◆ CMRtestHereditaryPropertyGreedy()
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
-
| cmr | CMR environment. |
| matrix | Some matrix not having the hereditary property. |
| testFunction | Test function. |
| testData | Data to be forwarded to the test function. |
| psubmatrix | Pointer for storing a minimal submatrix not having the property. |
| timeLimit | Time limit to impose. |
◆ CMRtestHereditaryPropertyNaive()
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
-
| cmr | CMR environment. |
| matrix | Some matrix not having the hereditary property. |
| testFunction | Test function. |
| testData | Data to be forwarded to the test function. |
| psubmatrix | Pointer for storing a minimal submatrix not having the property. |
| timeLimit | Time limit to impose. |