|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthep.physics.matrix.BasicMatrix
public class BasicMatrix
A very simple matrix implementation
| Constructor Summary | |
|---|---|
BasicMatrix(double[][] data)
Creates a new instance of BasicMatrix |
|
BasicMatrix(int nRows,
int nCols)
|
|
BasicMatrix(Matrix mIn)
|
|
| Method Summary | |
|---|---|
double |
det()
|
double |
e(int row,
int column)
Returns the value of the given element |
int |
getNColumns()
Returns the number of columns |
int |
getNRows()
Returns the number of rows |
void |
invert()
Invert this matrix (into itself) |
void |
setElement(int row,
int column,
double value)
Set the given element of the matrix |
java.lang.String |
toString()
|
void |
transpose()
Tranpose this matrix (into itself) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicMatrix(int nRows,
int nCols)
public BasicMatrix(double[][] data)
public BasicMatrix(Matrix mIn)
| Method Detail |
|---|
public int getNRows()
Matrix
getNRows in interface Matrixpublic int getNColumns()
Matrix
getNColumns in interface Matrix
public double e(int row,
int column)
Matrix
e in interface Matrixpublic double det()
public java.lang.String toString()
toString in class java.lang.Object
public void setElement(int row,
int column,
double value)
MutableMatrix
setElement in interface MutableMatrix
public void invert()
throws MatrixOp.IndeterminateMatrixException
MutableMatrix
invert in interface MutableMatrixMatrixOp.IndeterminateMatrixExceptionMatrixOp.inverse(Matrix,MutableMatrix)public void transpose()
MutableMatrix
transpose in interface MutableMatrixMatrixOp.transposed(Matrix,MutableMatrix)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||