Enum Class Type
- All Implemented Interfaces:
TokenAssociatedEnum,Serializable,Comparable<Type>,Constable
The shape is an array of up to three integers describing how big this
tensor is in each dimension. The first dimension contains the number of bits
of each value and the following dimensions describe the actual dimensions of
the tensor.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe different ways bits in a tensor can be interpreted.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeintReturns the bit depth.Returns the compact name of the type.int[]Returns the size of each dimension.Returns the explicit name of the type.Returns the set of types that this type can be converted to without a constructor or swizzling.Returns the number type.intReturns the token type in the parser.static TypeofLiteralTokenType(int literalTokenType) Returns the type for the given literal token type.static TypeofTokenType(int tokenType) Returns the type for the given token type.static TypeReturns the enum constant of this class with the specified name.static Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOL
-
BVEC2
-
BVEC3
-
BVEC4
-
INT8
-
I8VEC2
-
I8VEC3
-
I8VEC4
-
UINT8
-
UI8VEC2
-
UI8VEC3
-
UI8VEC4
-
INT16
-
I16VEC2
-
I16VEC3
-
I16VEC4
-
UINT16
-
UI16VEC2
-
UI16VEC3
-
UI16VEC4
-
INT32
-
I32VEC2
-
I32VEC3
-
I32VEC4
-
UINT32
-
UI32VEC2
-
UI32VEC3
-
UI32VEC4
-
INT64
-
I64VEC2
-
I64VEC3
-
I64VEC4
-
UINT64
-
UI64VEC2
-
UI64VEC3
-
UI64VEC4
-
FLOAT16
-
F16VEC2
-
F16VEC3
-
F16VEC4
-
F16MAT2X2
-
F16MAT2X3
-
F16MAT2X4
-
F16MAT3X2
-
F16MAT3X3
-
F16MAT3X4
-
F16MAT4X2
-
F16MAT4X3
-
F16MAT4X4
-
FLOAT32
-
F32VEC2
-
F32VEC3
-
F32VEC4
-
F32MAT2X2
-
F32MAT2X3
-
F32MAT2X4
-
F32MAT3X2
-
F32MAT3X3
-
F32MAT3X4
-
F32MAT4X2
-
F32MAT4X3
-
F32MAT4X4
-
FLOAT64
-
F64VEC2
-
F64VEC3
-
F64VEC4
-
F64MAT2X2
-
F64MAT2X3
-
F64MAT2X4
-
F64MAT3X2
-
F64MAT3X3
-
F64MAT3X4
-
F64MAT4X2
-
F64MAT4X3
-
F64MAT4X4
-
-
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
-
getTokenType
public int getTokenType()Returns the token type in the parser.- Specified by:
getTokenTypein interfaceTokenAssociatedEnum- Returns:
- The token type in the parser
-
getNumberType
Returns the number type.- Returns:
- The number type
-
getDimensions
public int[] getDimensions()Returns the size of each dimension. (also called the shape)- Returns:
- The size of each dimension
-
getBitDepth
public int getBitDepth()Returns the bit depth.- Returns:
- The bit depth
-
getCompactName
Returns the compact name of the type. Some types, notably some that are added by extensions, do not have compact name.- Returns:
- The type's compact name, or null if the type does not have a compact name.
-
getMostCompactName
-
getExplicitName
Returns the explicit name of the type. This name uses an explicit arithmetic type name that may not be compatible if the extension for these type names is not available.- Returns:
- The type's most explicit name.
-
getImplicitCasts
Returns the set of types that this type can be converted to without a constructor or swizzling.- Returns:
- the set of types that this type can be implicitly converted to.
-
fromToken
-
ofTokenType
Returns the type for the given token type.- Parameters:
tokenType- The token type in the parser- Returns:
- The type for the given token type index
-
ofLiteralTokenType
Returns the type for the given literal token type.- Parameters:
literalTokenType- The literal token type- Returns:
- The type for the given literal token type
-