public class LongShapeDescriptor extends Object
Constructor and Description |
---|
LongShapeDescriptor(long[] shape,
long[] stride,
long offset,
long ews,
char order,
long extras) |
Modifier and Type | Method and Description |
---|---|
LongShapeDescriptor |
asDataType(DataType dataType)
Return a new LongShapeDescriptor with the same shape, strides, order etc but with the specified datatype instead
|
DataType |
dataType() |
static LongShapeDescriptor |
empty(DataType dataType) |
boolean |
equals(Object o) |
static LongShapeDescriptor |
fromShape(int[] shape,
DataType dataType) |
static LongShapeDescriptor |
fromShape(long[] shape,
DataType dataType) |
static LongShapeDescriptor |
fromShape(long[] shape,
long extras) |
static LongShapeDescriptor |
fromShape(long[] shape,
long[] strides,
long ews,
char order,
DataType dataType,
boolean empty) |
static LongShapeDescriptor |
fromShapeDescriptor(ShapeDescriptor descriptor) |
int |
hashCode() |
boolean |
isEmpty() |
int |
rank() |
String |
toString() |
public LongShapeDescriptor(long[] shape, long[] stride, long offset, long ews, char order, long extras)
public int rank()
public DataType dataType()
public static LongShapeDescriptor fromShapeDescriptor(@NonNull ShapeDescriptor descriptor)
public static LongShapeDescriptor fromShape(int[] shape, @NonNull DataType dataType)
public static LongShapeDescriptor fromShape(long[] shape, @NonNull DataType dataType)
public static LongShapeDescriptor empty(@NonNull DataType dataType)
public static LongShapeDescriptor fromShape(@NonNull long[] shape, @NonNull long[] strides, long ews, char order, @NonNull DataType dataType, boolean empty)
public static LongShapeDescriptor fromShape(long[] shape, long extras)
public LongShapeDescriptor asDataType(DataType dataType)
dataType
- Datatype of the returned descriptorpublic boolean isEmpty()
Copyright © 2019. All rights reserved.