public class BasicMatrix extends java.lang.Object implements MutableMatrix, java.io.Serializable
| Constructor and Description |
|---|
BasicMatrix(double[][] data)
Creates a new instance of BasicMatrix
|
BasicMatrix(double e11,
double e12,
double e13,
double e21,
double e22,
double e23,
double e31,
double e32,
double e33) |
BasicMatrix(int nRows,
int nCols) |
BasicMatrix(Matrix mIn) |
| Modifier and Type | Method and Description |
|---|---|
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)
|
public BasicMatrix(int nRows,
int nCols)
public BasicMatrix(double e11,
double e12,
double e13,
double e21,
double e22,
double e23,
double e31,
double e32,
double e33)
public BasicMatrix(double[][] data)
public BasicMatrix(Matrix mIn)
public int getNRows()
Matrixpublic int getNColumns()
MatrixgetNColumns in interface Matrixpublic double e(int row,
int column)
Matrixpublic double det()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setElement(int row,
int column,
double value)
MutableMatrixsetElement in interface MutableMatrixpublic void invert()
throws MatrixOp.IndeterminateMatrixException
MutableMatrixinvert in interface MutableMatrixMatrixOp.IndeterminateMatrixExceptionMatrixOp.inverse(Matrix,MutableMatrix)public void transpose()
MutableMatrixtranspose in interface MutableMatrixMatrixOp.transposed(Matrix,MutableMatrix)JHepSim. A part of HSTOOLS. version-1.2