public class MatrixInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MatrixInfo.MatrixField
What kind of numbers are stored
|
static class |
MatrixInfo.MatrixSymmetry
Symmetry structure of the matrix, if any
|
| Constructor and Description |
|---|
MatrixInfo(boolean sparse,
MatrixInfo.MatrixField field,
MatrixInfo.MatrixSymmetry symmetry)
Creates a specific type
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isArray()
Returns
true if the matrix is in array format, else
false |
boolean |
isComplex()
Returns
true if the matrix stores complex numbers, else
false |
boolean |
isCoordinate()
Returns
true if the matrix is in coordinate format, else
false |
boolean |
isDense()
Returns
true if the matrix is in array format, else
false |
boolean |
isGeneral()
Returns
true if the matrix form is general, else
false |
boolean |
isHermitian()
Returns
true if the matrix is Hermitian, else
false |
boolean |
isInteger()
Returns
true if the matrix stores integers, else
false |
boolean |
isPattern()
Returns
true if the matrix does not store any numbers, else
false |
boolean |
isReal()
Returns
true if the matrix stores real numbers, else
false |
boolean |
isSkewSymmetric()
Returns
true if the matrix is skew-symmetrical, else
false |
boolean |
isSparse()
Returns
true if the matrix is in coordinate format, else
false |
boolean |
isSymmetric()
Returns
true if the matrix is symmetrical, else
false |
String |
toString()
Returns a string representation of the specifier.
|
public MatrixInfo(boolean sparse,
MatrixInfo.MatrixField field,
MatrixInfo.MatrixSymmetry symmetry)
sparse - True for sparse matrices, else falsefield - Type of data storedsymmetry - Matrix symmetrypublic boolean isSparse()
true if the matrix is in coordinate format, else
falsepublic boolean isCoordinate()
true if the matrix is in coordinate format, else
falsepublic boolean isDense()
true if the matrix is in array format, else
falsepublic boolean isArray()
true if the matrix is in array format, else
falsepublic boolean isReal()
true if the matrix stores real numbers, else
falsepublic boolean isInteger()
true if the matrix stores integers, else
falsepublic boolean isComplex()
true if the matrix stores complex numbers, else
falsepublic boolean isPattern()
true if the matrix does not store any numbers, else
falsepublic boolean isGeneral()
true if the matrix form is general, else
falsepublic boolean isSymmetric()
true if the matrix is symmetrical, else
falsepublic boolean isSkewSymmetric()
true if the matrix is skew-symmetrical, else
falsepublic boolean isHermitian()
true if the matrix is Hermitian, else
falseJump to the Parallel Colt Homepage