|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.mathprog.linalg.DoubleMatrix
public class DoubleMatrix
A matrix consisting of doubles which is stored in one linear array.
Constructor Summary | |
---|---|
DoubleMatrix(double[][] matrix)
|
|
DoubleMatrix(int numRows,
int numColumns)
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. |
void |
setDoubleAt(int row,
int column,
double value)
|
void |
setTwoDimDoubleArray(double[][] twoDimArray)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DoubleMatrix(int numRows, int numColumns)
numRows
- the number of rows of the matrix.numColumns
- the number of columns of the matrixpublic DoubleMatrix(double[][] 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
public void setDoubleAt(int row, int column, double value)
public void setTwoDimDoubleArray(double[][] twoDimArray)
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |