Package org.ejml.data
Enum Class MatrixType
- All Implemented Interfaces:
Serializable
,Comparable<MatrixType>
,Constable
Specifies that type of data structure a matrix is encoded with.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(int rows, int cols) int
getBits()
boolean
isDense()
boolean
isFixed()
boolean
isReal()
static MatrixType
lookup
(boolean dense, boolean real, int bits) Looks up the default matrix type for the specified featuresstatic MatrixType
static MatrixType
Returns the enum constant of this class with the specified name.static MatrixType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DDRM
-
FDRM
-
ZDRM
-
CDRM
-
DSCC
-
FSCC
-
ZSCC
-
CSCC
-
DTRIPLET
-
FTRIPLET
-
UNSPECIFIED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
lookup
-
lookup
Looks up the default matrix type for the specified features -
isReal
public boolean isReal() -
isFixed
public boolean isFixed() -
isDense
public boolean isDense() -
getBits
public int getBits() -
getClassType
-
create
-