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 long
ATYPE_COMPRESSED_BIT
static long
ATYPE_EMPTY_BIT
static long
ATYPE_SPARSE_BIT
static long
DTYPE_BFLOAT16_BIT
static long
DTYPE_BOOL_BIT
static long
DTYPE_BYTE_BIT
static long
DTYPE_COMPRESSED_BIT
static long
DTYPE_DOUBLE_BIT
static long
DTYPE_FLOAT_BIT
static long
DTYPE_HALF_BIT
static long
DTYPE_INT_BIT
static long
DTYPE_LONG_BIT
static long
DTYPE_SHORT_BIT
static long
DTYPE_UNSIGNED_BIT
static long
DTYPE_UTF8_BIT
static long
HAS_PADDED_BUFFER
-
Constructor Summary
Constructors Constructor Description ArrayOptionsHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArrayType
arrayType(long[] shapeInfo)
static DataType
convertToDataType(DataType dataType)
static DataType
dataType(long opt)
static DataType
dataType(long[] shapeInfo)
static DataType
dataType(@NonNull String dataType)
static boolean
hasBitSet(long[] shapeInfo, long bit)
static boolean
hasBitSet(long storage, long bit)
static void
setOptionBit(long[] storage, ArrayType type)
static long
setOptionBit(long extras, long bit)
static long
setOptionBit(long storage, DataType type)
static long
setOptionBit(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)
-
-