Class ArrayOptionsHelper
- java.lang.Object
-
- org.nd4j.linalg.api.shape.options.ArrayOptionsHelper
-
public class ArrayOptionsHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static longATYPE_COMPRESSED_BITstatic longATYPE_EMPTY_BITstatic longATYPE_SPARSE_BITstatic longDTYPE_BFLOAT16_BITstatic longDTYPE_BOOL_BITstatic longDTYPE_BYTE_BITstatic longDTYPE_COMPRESSED_BITstatic longDTYPE_DOUBLE_BITstatic longDTYPE_FLOAT_BITstatic longDTYPE_HALF_BITstatic longDTYPE_INT_BITstatic longDTYPE_LONG_BITstatic longDTYPE_SHORT_BITstatic longDTYPE_UNSIGNED_BITstatic longDTYPE_UTF8_BITstatic longHAS_PADDED_BUFFER
-
Constructor Summary
Constructors Constructor Description ArrayOptionsHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArrayTypearrayType(long[] shapeInfo)static DataTypeconvertToDataType(DataType dataType)static DataTypedataType(long opt)static DataTypedataType(long[] shapeInfo)static DataTypedataType(@NonNull String dataType)static booleanhasBitSet(long[] shapeInfo, long bit)static booleanhasBitSet(long storage, long bit)static voidsetOptionBit(long[] storage, ArrayType type)static longsetOptionBit(long extras, long bit)static longsetOptionBit(long storage, DataType type)static longsetOptionBit(long storage, ArrayType type)
-
-
-
Field Detail
-
ATYPE_SPARSE_BIT
public static final long ATYPE_SPARSE_BIT
- See Also:
- Constant Field Values
-
ATYPE_COMPRESSED_BIT
public static final long ATYPE_COMPRESSED_BIT
- See Also:
- Constant Field Values
-
ATYPE_EMPTY_BIT
public static final long ATYPE_EMPTY_BIT
- See Also:
- Constant Field Values
-
DTYPE_COMPRESSED_BIT
public static final long DTYPE_COMPRESSED_BIT
- See Also:
- Constant Field Values
-
DTYPE_BFLOAT16_BIT
public static final long DTYPE_BFLOAT16_BIT
- See Also:
- Constant Field Values
-
DTYPE_HALF_BIT
public static final long DTYPE_HALF_BIT
- See Also:
- Constant Field Values
-
DTYPE_FLOAT_BIT
public static final long DTYPE_FLOAT_BIT
- See Also:
- Constant Field Values
-
DTYPE_DOUBLE_BIT
public static final long DTYPE_DOUBLE_BIT
- See Also:
- Constant Field Values
-
DTYPE_INT_BIT
public static final long DTYPE_INT_BIT
- See Also:
- Constant Field Values
-
DTYPE_LONG_BIT
public static final long DTYPE_LONG_BIT
- See Also:
- Constant Field Values
-
DTYPE_BOOL_BIT
public static final long DTYPE_BOOL_BIT
- See Also:
- Constant Field Values
-
DTYPE_BYTE_BIT
public static final long DTYPE_BYTE_BIT
- See Also:
- Constant Field Values
-
DTYPE_SHORT_BIT
public static final long DTYPE_SHORT_BIT
- See Also:
- Constant Field Values
-
DTYPE_UTF8_BIT
public static final long DTYPE_UTF8_BIT
- See Also:
- Constant Field Values
-
DTYPE_UNSIGNED_BIT
public static final long DTYPE_UNSIGNED_BIT
- See Also:
- Constant Field Values
-
HAS_PADDED_BUFFER
public static final long HAS_PADDED_BUFFER
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasBitSet
public static boolean hasBitSet(long[] shapeInfo, long bit)
-
setOptionBit
public static long setOptionBit(long extras, long bit)
-
setOptionBit
public static void setOptionBit(long[] storage, ArrayType type)
-
hasBitSet
public static boolean hasBitSet(long storage, long bit)
-
arrayType
public static ArrayType arrayType(long[] shapeInfo)
-
dataType
public static DataType dataType(long opt)
-
dataType
public static DataType dataType(long[] shapeInfo)
-
setOptionBit
public static long setOptionBit(long storage, DataType type)
-
setOptionBit
public static long setOptionBit(long storage, ArrayType type)
-
-