Package org.nd4j.linalg.api.buffer
Enum DataBuffer.AllocationMode
- java.lang.Object
-
- java.lang.Enum<DataBuffer.AllocationMode>
-
- org.nd4j.linalg.api.buffer.DataBuffer.AllocationMode
-
- All Implemented Interfaces:
Serializable
,Comparable<DataBuffer.AllocationMode>
- Enclosing interface:
- DataBuffer
public static enum DataBuffer.AllocationMode extends Enum<DataBuffer.AllocationMode>
Mainly used for backward compatability. Note that DIRECT and HEAP modes have been deprecated asd should not be used.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIRECT
Deprecated.HEAP
Deprecated.JAVACPP
Deprecated.LONG_SHAPE
Deprecated.MIXED_DATA_TYPES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataBuffer.AllocationMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataBuffer.AllocationMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DIRECT
@Deprecated public static final DataBuffer.AllocationMode DIRECT
Deprecated.
-
HEAP
@Deprecated public static final DataBuffer.AllocationMode HEAP
Deprecated.
-
JAVACPP
@Deprecated public static final DataBuffer.AllocationMode JAVACPP
Deprecated.
-
LONG_SHAPE
@Deprecated public static final DataBuffer.AllocationMode LONG_SHAPE
Deprecated.
-
MIXED_DATA_TYPES
public static final DataBuffer.AllocationMode MIXED_DATA_TYPES
-
-
Method Detail
-
values
public static DataBuffer.AllocationMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataBuffer.AllocationMode c : DataBuffer.AllocationMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataBuffer.AllocationMode valueOf(String name)
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
-
-