Package no.uib.cipr.matrix.io
Class MatrixInfo
- java.lang.Object
-
- no.uib.cipr.matrix.io.MatrixInfo
-
public class MatrixInfo extends java.lang.ObjectContains information on a matrix in the Matrix Market exchange format. Supports all valid matrices.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMatrixInfo.MatrixFieldWhat kind of numbers are storedstatic classMatrixInfo.MatrixSymmetrySymmetry structure of the matrix, if any
-
Constructor Summary
Constructors Constructor Description MatrixInfo(boolean sparse, MatrixInfo.MatrixField field, MatrixInfo.MatrixSymmetry symmetry)Creates a specific type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisArray()Returnstrueif the matrix is in array format, elsefalsebooleanisComplex()Returnstrueif the matrix stores complex numbers, elsefalsebooleanisCoordinate()Returnstrueif the matrix is in coordinate format, elsefalsebooleanisDense()Returnstrueif the matrix is in array format, elsefalsebooleanisGeneral()Returnstrueif the matrix form is general, elsefalsebooleanisHermitian()Returnstrueif the matrix is Hermitian, elsefalsebooleanisInteger()Returnstrueif the matrix stores integers, elsefalsebooleanisPattern()Returnstrueif the matrix does not store any numbers, elsefalsebooleanisReal()Returnstrueif the matrix stores real numbers, elsefalsebooleanisSkewSymmetric()Returnstrueif the matrix is skew-symmetrical, elsefalsebooleanisSparse()Returnstrueif the matrix is in coordinate format, elsefalsebooleanisSymmetric()Returnstrueif the matrix is symmetrical, elsefalsejava.lang.StringtoString()Returns a string representation of the specifier.
-
-
-
Constructor Detail
-
MatrixInfo
public MatrixInfo(boolean sparse, MatrixInfo.MatrixField field, MatrixInfo.MatrixSymmetry symmetry)Creates a specific type- Parameters:
sparse- True for sparse matrices, else falsefield- Type of data storedsymmetry- Matrix symmetry
-
-
Method Detail
-
isSparse
public boolean isSparse()
Returnstrueif the matrix is in coordinate format, elsefalse
-
isCoordinate
public boolean isCoordinate()
Returnstrueif the matrix is in coordinate format, elsefalse
-
isDense
public boolean isDense()
Returnstrueif the matrix is in array format, elsefalse
-
isArray
public boolean isArray()
Returnstrueif the matrix is in array format, elsefalse
-
isReal
public boolean isReal()
Returnstrueif the matrix stores real numbers, elsefalse
-
isInteger
public boolean isInteger()
Returnstrueif the matrix stores integers, elsefalse
-
isComplex
public boolean isComplex()
Returnstrueif the matrix stores complex numbers, elsefalse
-
isPattern
public boolean isPattern()
Returnstrueif the matrix does not store any numbers, elsefalse
-
isGeneral
public boolean isGeneral()
Returnstrueif the matrix form is general, elsefalse
-
isSymmetric
public boolean isSymmetric()
Returnstrueif the matrix is symmetrical, elsefalse
-
isSkewSymmetric
public boolean isSkewSymmetric()
Returnstrueif the matrix is skew-symmetrical, elsefalse
-
isHermitian
public boolean isHermitian()
Returnstrueif the matrix is Hermitian, elsefalse
-
toString
public java.lang.String toString()
Returns a string representation of the specifier. Can be used to provide a header for writing to a file. It is a two-line output, which can look like this:%%MatrixMarket matrix coordinate real general- Overrides:
toStringin classjava.lang.Object
-
-