public static enum Matrix.WriteFormat extends java.lang.Enum<Matrix.WriteFormat>
| Enum Constant and Description | 
|---|
| CRSCompressed row storage (CRS) format. | 
| DenseUsual dense matrix format, as in | 
| MatrixMarketMatrixMarket
 format. | 
| SparseSparse format consisting of the non-zero entries, in row-major order,
 each written as a 3-tuples containing the i and j indices (0-based) and
 the associated value. | 
| SYMMETRIC_CRSSame as CRS, except that the matrix is assumed to be symmetric
 and only the upper triangular values are stored. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Matrix.WriteFormat | valueOf(java.lang.String name)Returns the enum constant of this type with the specified name. | 
| static Matrix.WriteFormat[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final Matrix.WriteFormat Dense
1.00 0.00 0.50 2.30 4.10 0.00 0.00 2.00 3.00
public static final Matrix.WriteFormat Sparse
Dense would be output as
 
 ( 0 0 1 ) ( 0 2 0.50 ) ( 1 0 2.30 ) ( 1 1 4.10 ) ( 2 1 2.00 ) ( 2 2 3.00 )
public static final Matrix.WriteFormat MatrixMarket
Dense would be
 output as
 
 %%MatrixMarket matrix coordinate real general 3 3 6 1 1 1 1 3 0.50 2 1 2.30 2 2 4.10 3 2 2.00 3 3 3.00
public static final Matrix.WriteFormat CRS
Dense
 would be output as
 
 3 1 3 5 7 1 3 1 2 2 3 1.00 0.50 2.30 4.10 2.00 3.00
public static final Matrix.WriteFormat SYMMETRIC_CRS
public static Matrix.WriteFormat[] values()
for (Matrix.WriteFormat c : Matrix.WriteFormat.values()) System.out.println(c);
public static Matrix.WriteFormat valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null