|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math3.linear.AbstractFieldMatrix<T>
org.apache.commons.math3.linear.SparseFieldMatrix<T>
T - the type of the field elements
@Deprecated public class SparseFieldMatrix<T extends FieldElement<T>>
Sparse matrix implementation based on an open addressed map.
| Constructor Summary | |
|---|---|
SparseFieldMatrix(Field<T> field)
Deprecated. Create a matrix with no data. |
|
SparseFieldMatrix(Field<T> field,
int rowDimension,
int columnDimension)
Deprecated. Create a new SparseFieldMatrix |
|
SparseFieldMatrix(FieldMatrix<T> other)
Deprecated. Generic copy constructor. |
|
SparseFieldMatrix(SparseFieldMatrix<T> other)
Deprecated. Copy constructor. |
|
| Method Summary | |
|---|---|
void |
addToEntry(int row,
int column,
T increment)
Deprecated. Change an entry in the specified row and column. |
FieldMatrix<T> |
copy()
Deprecated. Make a (deep) copy of this. |
FieldMatrix<T> |
createMatrix(int rowDimension,
int columnDimension)
Deprecated. Create a new FieldMatrix |
int |
getColumnDimension()
Deprecated. Returns the number of columns in the matrix. |
T |
getEntry(int row,
int column)
Deprecated. Returns the entry in the specified row and column. |
int |
getRowDimension()
Deprecated. Returns the number of rows in the matrix. |
void |
multiplyEntry(int row,
int column,
T factor)
Deprecated. Change an entry in the specified row and column. |
void |
setEntry(int row,
int column,
T value)
Deprecated. Set the entry in the specified row and column. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SparseFieldMatrix(Field<T> field)
field - Field to which the elements belong.
public SparseFieldMatrix(Field<T> field,
int rowDimension,
int columnDimension)
field - Field to which the elements belong.rowDimension - Number of rows in the new matrix.columnDimension - Number of columns in the new matrix.
NotStrictlyPositiveException - if row or column dimension is not positive.public SparseFieldMatrix(SparseFieldMatrix<T> other)
other - Instance to copy.public SparseFieldMatrix(FieldMatrix<T> other)
other - Instance to copy.| Method Detail |
|---|
public void addToEntry(int row,
int column,
T increment)
addToEntry in interface FieldMatrix<T extends FieldElement<T>>addToEntry in class AbstractFieldMatrix<T extends FieldElement<T>>row - Row location of entry to be set.column - Column location of entry to be set.increment - Value to add to the current matrix entry in
(row, column).public FieldMatrix<T> copy()
copy in interface FieldMatrix<T extends FieldElement<T>>copy in class AbstractFieldMatrix<T extends FieldElement<T>>
public FieldMatrix<T> createMatrix(int rowDimension,
int columnDimension)
createMatrix in interface FieldMatrix<T extends FieldElement<T>>createMatrix in class AbstractFieldMatrix<T extends FieldElement<T>>rowDimension - the number of rows in the new matrixcolumnDimension - the number of columns in the new matrix
public int getColumnDimension()
getColumnDimension in interface AnyMatrixgetColumnDimension in class AbstractFieldMatrix<T extends FieldElement<T>>
public T getEntry(int row,
int column)
getEntry in interface FieldMatrix<T extends FieldElement<T>>getEntry in class AbstractFieldMatrix<T extends FieldElement<T>>row - row location of entry to be fetchedcolumn - column location of entry to be fetched
public int getRowDimension()
getRowDimension in interface AnyMatrixgetRowDimension in class AbstractFieldMatrix<T extends FieldElement<T>>
public void multiplyEntry(int row,
int column,
T factor)
multiplyEntry in interface FieldMatrix<T extends FieldElement<T>>multiplyEntry in class AbstractFieldMatrix<T extends FieldElement<T>>row - Row location of entry to be set.column - Column location of entry to be set.factor - Multiplication factor for the current matrix entry
in (row,column)
public void setEntry(int row,
int column,
T value)
setEntry in interface FieldMatrix<T extends FieldElement<T>>setEntry in class AbstractFieldMatrix<T extends FieldElement<T>>row - row location of entry to be setcolumn - column location of entry to be setvalue - matrix entry to be set in row,column
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||