|
|
Find a solution of the linear system Ax=b whose denominator (when written as an integer vector over a single denom) is minimal.
- Parameters:
-
| A,Matrix | of linear system |
| x,Vector | in which to store solution |
| b,Right-hand | side of system |
| maxPrimes,maximum | number of moduli to try |
| level,level | of certification to be used |
- Returns:
- status of solution. if (return != SS_FAILED) and (level >= SL_LASVEGAS), solution is guaranteed correct if (return == SS_OK) and (level >= SL_LASVEGAS), solution is guaranteed minimal. SS_FAILED - all primes used were bad SS_OK - solution found. certificate of minimality is in lastCertificate if (level >= SL_CERTIFIED) SS_INCONSISTENT - system appreared inconsistent. certificate of inconsistency is in lastCertificate if (level >= SL_CERTIFIED)
status of solution - OK, FAILED, SINGULAR, INCONSISTENT, BAD_PRECONDITIONER
|