Package org.ejml.data
Enum MatrixType
- All Implemented Interfaces:
Serializable
,Comparable<MatrixType>
,java.lang.constant.Constable
public enum MatrixType extends Enum<MatrixType>
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 Type Method Description Matrix
create(int rows, int cols)
int
getBits()
Class
getClassType()
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
lookup(Class<?> type)
static MatrixType
valueOf(String name)
Returns the enum constant of this type with the specified name.static MatrixType[]
values()
Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
-