Package org.nd4j.linalg.api.shape
Class LongShapeDescriptor
- java.lang.Object
-
- org.nd4j.linalg.api.shape.LongShapeDescriptor
-
public class LongShapeDescriptor extends Object
-
-
Constructor Summary
Constructors Constructor Description LongShapeDescriptor(long[] shape, long[] stride, long offset, long ews, char order, long extras)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LongShapeDescriptor
asDataType(DataType dataType)
Return a new LongShapeDescriptor with the same shape, strides, order etc but with the specified datatype insteadDataType
dataType()
static LongShapeDescriptor
empty(@NonNull DataType dataType)
boolean
equals(Object o)
static LongShapeDescriptor
fromShape(@lombok.NonNull long[] shape, @lombok.NonNull long[] strides, long ews, char order, @NonNull DataType dataType, boolean empty)
static LongShapeDescriptor
fromShape(int[] shape, @NonNull DataType dataType)
static LongShapeDescriptor
fromShape(long[] shape, long extras)
static LongShapeDescriptor
fromShape(long[] shape, @NonNull DataType dataType)
static LongShapeDescriptor
fromShapeDescriptor(@NonNull ShapeDescriptor descriptor)
int
hashCode()
boolean
isEmpty()
int
rank()
String
toString()
-
-
-
Method Detail
-
rank
public int rank()
-
dataType
public DataType dataType()
-
fromShapeDescriptor
public static LongShapeDescriptor fromShapeDescriptor(@NonNull @NonNull ShapeDescriptor descriptor)
-
fromShape
public static LongShapeDescriptor fromShape(int[] shape, @NonNull @NonNull DataType dataType)
-
fromShape
public static LongShapeDescriptor fromShape(long[] shape, @NonNull @NonNull DataType dataType)
-
empty
public static LongShapeDescriptor empty(@NonNull @NonNull DataType dataType)
-
fromShape
public static LongShapeDescriptor fromShape(@NonNull @lombok.NonNull long[] shape, @NonNull @lombok.NonNull long[] strides, long ews, char order, @NonNull @NonNull DataType dataType, boolean empty)
-
fromShape
public static LongShapeDescriptor fromShape(long[] shape, long extras)
-
asDataType
public LongShapeDescriptor asDataType(DataType dataType)
Return a new LongShapeDescriptor with the same shape, strides, order etc but with the specified datatype instead- Parameters:
dataType
- Datatype of the returned descriptor
-
isEmpty
public boolean isEmpty()
-
-