public class ArrayOptionsHelper extends Object
Modifier and Type | Field and 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 and Description |
---|
ArrayOptionsHelper() |
Modifier and Type | Method and 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 storage,
ArrayType type) |
static long |
setOptionBit(long storage,
DataType type) |
static long |
setOptionBit(long extras,
long bit) |
public static final long ATYPE_SPARSE_BIT
public static final long ATYPE_COMPRESSED_BIT
public static final long ATYPE_EMPTY_BIT
public static final long DTYPE_COMPRESSED_BIT
public static final long DTYPE_BFLOAT16_BIT
public static final long DTYPE_HALF_BIT
public static final long DTYPE_FLOAT_BIT
public static final long DTYPE_DOUBLE_BIT
public static final long DTYPE_INT_BIT
public static final long DTYPE_LONG_BIT
public static final long DTYPE_BOOL_BIT
public static final long DTYPE_BYTE_BIT
public static final long DTYPE_SHORT_BIT
public static final long DTYPE_UTF8_BIT
public static final long DTYPE_UNSIGNED_BIT
public static final long HAS_PADDED_BUFFER
public static boolean hasBitSet(long[] shapeInfo, long bit)
public static long setOptionBit(long extras, long bit)
public static void setOptionBit(long[] storage, ArrayType type)
public static boolean hasBitSet(long storage, long bit)
public static ArrayType arrayType(long[] shapeInfo)
public static DataType dataType(long opt)
public static DataType dataType(long[] shapeInfo)
public static long setOptionBit(long storage, DataType type)
public static long setOptionBit(long storage, ArrayType type)
Copyright © 2021. All rights reserved.