public class SquareMatrix extends Matrix
Constructor and Description |
---|
SquareMatrix(int n) |
SquareMatrix(java.lang.String[][] sm) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDeterminant()
The determinant is computed.
|
static double |
getDeterminant(double[][] b) |
static java.lang.String |
getDeterminant(java.lang.String[][] b,
boolean is_numerical) |
void |
setComponents(java.lang.String[][] components) |
getIsNumerical, getMatrix, getMatrixAsHtml, getMatrixAsHtml, getProduct, getSubMatrix, getTranspose, setIsNumerical, setIsNumerical
public SquareMatrix(int n)
public SquareMatrix(java.lang.String[][] sm)
public java.lang.String getDeterminant() throws java.lang.Exception
java.lang.Exception
public void setComponents(java.lang.String[][] components) throws java.lang.Exception
setComponents
in class Matrix
java.lang.Exception
public static double getDeterminant(double[][] b)
b
- Array with numerical entries.public static java.lang.String getDeterminant(java.lang.String[][] b, boolean is_numerical) throws java.lang.Exception
b
- String-valued array.is_numerical
- 'true' if all entries are numerical,
'false' else.java.lang.Exception