|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.javasoft.smx.ops.GaussPivoting.BiLenProductLorEandMoreRowZeros
public static class GaussPivoting.BiLenProductLorEandMoreRowZeros
This pivoting strategy for (B)ig (I)nteger rational matrices uses the product of the bit lengths of numerator and denominator. Note that the length is an estimate for the logarithm of the big integer numbers. A pivot element is chosen if the product is (L)ess than the value of a previous candidate. If it is equal, the number of zeros of the row determines the choice of the pivot element.
pivot, if
bitlen(numerator)*bitlen(denominator) < previous OR
bitlen(numerator)*bitlen(denominator) == previous AND #rowzeros > previous
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface ch.javasoft.smx.ops.GaussPivoting |
|---|
GaussPivoting.BiLenProductL, GaussPivoting.BiLenProductLE, GaussPivoting.BiLenProductLorEandMoreRowZeros, GaussPivoting.BiLenSumLorEandMoreRowZeros, GaussPivoting.BiMaxLenLorEandMoreRowZeros |
| Constructor Summary | |
|---|---|
GaussPivoting.BiLenProductLorEandMoreRowZeros(int pivot)
|
|
| Method Summary | |
|---|---|
boolean |
checkCandidateCol(ReadableBigIntegerRationalMatrix<BigFraction> matrix,
int pivot,
int row,
int col,
int zerCnt)
Check metrix value, e.g. |
int |
checkCandidateRow(ReadableBigIntegerRationalMatrix<BigFraction> matrix,
int pivot,
int row)
Check a whole row, e.g. |
int |
getPivotCol()
Returns the column index of the pivot row |
int |
getPivotRow()
Returns the row index of the pivot row |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GaussPivoting.BiLenProductLorEandMoreRowZeros(int pivot)
| Method Detail |
|---|
public int checkCandidateRow(ReadableBigIntegerRationalMatrix<BigFraction> matrix,
int pivot,
int row)
GaussPivotingcheckCandidateCol(..)
is only called for non-zero values. The returned value is then passed to
checkCandidateCol(..).
checkCandidateRow in interface GaussPivoting<ReadableBigIntegerRationalMatrix<BigFraction>>matrix - the matrix to checkpivot - the pivot index, 0 for the first pivotrow - the row to check
checkCandidateCol(..)
public boolean checkCandidateCol(ReadableBigIntegerRationalMatrix<BigFraction> matrix,
int pivot,
int row,
int col,
int zerCnt)
GaussPivoting
checkCandidateCol in interface GaussPivoting<ReadableBigIntegerRationalMatrix<BigFraction>>matrix - the matrix to checkpivot - the pivot index, 0 for the first pivotrow - the row index of the value to checkcol - the column index of the value to checkzerCnt - the result which was previously returned by
checkCandidateRow(..)
public int getPivotCol()
GaussPivoting
getPivotCol in interface GaussPivoting<ReadableBigIntegerRationalMatrix<BigFraction>>public int getPivotRow()
GaussPivoting
getPivotRow in interface GaussPivoting<ReadableBigIntegerRationalMatrix<BigFraction>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||