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
false
public boolean isCoordinate()
true
if the matrix is in coordinate format, else
false
public boolean isDense()
true
if the matrix is in array format, else
false
public boolean isArray()
true
if the matrix is in array format, else
false
public boolean isReal()
true
if the matrix stores real numbers, else
false
public boolean isInteger()
true
if the matrix stores integers, else
false
public boolean isComplex()
true
if the matrix stores complex numbers, else
false
public boolean isPattern()
true
if the matrix does not store any numbers, else
false
public boolean isGeneral()
true
if the matrix form is general, else
false
public boolean isSymmetric()
true
if the matrix is symmetrical, else
false
public boolean isSkewSymmetric()
true
if the matrix is skew-symmetrical, else
false
public boolean isHermitian()
true
if the matrix is Hermitian, else
false
Jump to the Parallel Colt Homepage