|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--lima.mathematical.factorisation.quadraticsieve.SparseMatrix
A class to represent sparse matrices with entries type short, zero default Note that the height, but not the width is fixed.
| Constructor Summary | |
SparseMatrix(lima.mathematical.factorisation.quadraticsieve.QuadraticSieveAlg qs,
int cols)
Construct a new SpareMatrix object |
|
| Method Summary | |
void |
addRow2Row(int rowToAdd,
int resultRow)
|
void |
deleteRow(int row)
|
int |
getEntry(int row,
int col)
|
int |
getHeight()
Gets the height of the matrix |
int[][] |
getIndicies()
Gets the indicies 2D array |
int[] |
getRowIndicies(int row)
Get a row's indexes |
int[] |
getRowValues(int row)
Get a row's values |
int[][] |
getValues()
Gets the values 2D array |
int |
getWidth()
Gets the width of the matrix |
boolean |
insertRow(int[] indexes,
int[] values,
lima.mathematical.factorisation.quadraticsieve.QuadraticSieveAlg qs,
java.math.BigInteger forSqVector)
Insert new row values |
void |
printRow(int row)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SparseMatrix(lima.mathematical.factorisation.quadraticsieve.QuadraticSieveAlg qs,
int cols)
| Method Detail |
public int[] getRowValues(int row)
row - - the row's values to get, indexed at 0public int[] getRowIndicies(int row)
row - - the row's values to get, indexed at 0public int getWidth()
public int getHeight()
public int[][] getValues()
public int[][] getIndicies()
public boolean insertRow(int[] indexes,
int[] values,
lima.mathematical.factorisation.quadraticsieve.QuadraticSieveAlg qs,
java.math.BigInteger forSqVector)
throws java.lang.Exception
indexes - - array of indexes with non-zero entriesvalues - - values corresponding to the indexes
java.lang.Exceptionpublic void printRow(int row)
public void deleteRow(int row)
public void addRow2Row(int rowToAdd,
int resultRow)
public int getEntry(int row,
int col)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||