Class LongShapeDescriptor


  • public class LongShapeDescriptor
    extends Object
    • Constructor Detail

      • LongShapeDescriptor

        public LongShapeDescriptor​(long[] shape,
                                   long[] stride,
                                   long offset,
                                   long ews,
                                   char order,
                                   long extras)
    • Method Detail

      • rank

        public int rank()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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)
      • 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()