public static enum Matrix.Type extends Enum<Matrix.Type>
Matrix instance. This enum should be used as a hint
for algorithms that create Matrix instances as to what
implementation to use.| Enum Constant and Description |
|---|
DENSE_IN_MEMORY
A
Matrix that contains very few 0 values and is small
enough to fit into memory. |
DENSE_ON_DISK
A
Matrix with very few zero values and is sufficiently large
enough that it would not fit in memory. |
DIAGONAL_IN_MEMORY
A diagonal
Matrix, saving a little more meory than a sparse
Matrix. |
SPARSE_IN_MEMORY
A
Matrix where the majority of the values are 0, and is
small enough to fit into memory. |
SPARSE_ON_DISK
A
Matrix with very few non-zero values and is sufficiently
large enough that it would not fit in memory. |
| Modifier and Type | Method and Description |
|---|---|
static Matrix.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Matrix.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Matrix.Type SPARSE_IN_MEMORY
Matrix where the majority of the values are 0, and is
small enough to fit into memory.public static final Matrix.Type DENSE_IN_MEMORY
Matrix that contains very few 0 values and is small
enough to fit into memory.public static final Matrix.Type SPARSE_ON_DISK
Matrix with very few non-zero values and is sufficiently
large enough that it would not fit in memory.public static final Matrix.Type DENSE_ON_DISK
Matrix with very few zero values and is sufficiently large
enough that it would not fit in memory.public static final Matrix.Type DIAGONAL_IN_MEMORY
Matrix, saving a little more meory than a sparse
Matrix.public static Matrix.Type[] values()
for (Matrix.Type c : Matrix.Type.values()) System.out.println(c);
public static Matrix.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullCopyright © 2012. All Rights Reserved.