|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.mathprog.linalg.IdentityMatrix
public class IdentityMatrix
The identity matrix for a given dimension.
Constructor Summary | |
---|---|
IdentityMatrix(int dimension)
Constructor. |
Method Summary | |
---|---|
SparseVector |
getColumnVector(int localColumn)
Return a column vector of the matrix. |
double |
getDoubleAt(int row,
int column)
|
int |
getNumColumns()
Return the number of columns of the model component. |
int |
getNumRows()
Return the number of rows of the model component. |
SparseVector |
getRowVector(int localRow)
Return a row vector of the matrix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdentityMatrix(int dimension)
dimension
- the dimension (number of rows = number of columns) of the matrix.Method Detail |
---|
public double getDoubleAt(int row, int column)
getDoubleAt
in interface Matrix
public SparseVector getColumnVector(int localColumn)
ColumnMatrix
getColumnVector
in interface ColumnMatrix
localColumn
- the index of the column
public SparseVector getRowVector(int localRow)
RowMatrix
getRowVector
in interface RowMatrix
localRow
- the index of the row
public int getNumColumns()
AbstractMatrix
getNumColumns
in interface AbstractMatrix
public int getNumRows()
AbstractMatrix
getNumRows
in interface AbstractMatrix
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |