Interface Shaped

All Known Subinterfaces:
BooleanNdArray, ByteNdArray, DoubleNdArray, FloatNdArray, IntNdArray, LongNdArray, NdArray<T>, ShortNdArray, SparseNdArray<T,U>
All Known Implementing Classes:
AbstractDenseNdArray, AbstractSparseNdArray, BooleanDenseNdArray, BooleanSparseNdArray, BooleanSparseSlice, ByteDenseNdArray, ByteSparseNdArray, ByteSparseSlice, DenseNdArray, DoubleDenseNdArray, DoubleSparseNdArray, DoubleSparseSlice, FloatDenseNdArray, FloatSparseNdArray, FloatSparseSlice, IntDenseNdArray, IntSparseNdArray, IntSparseSlice, LongDenseNdArray, LongSparseNdArray, LongSparseSlice, ObjectSparseSlice, ShortDenseNdArray, ShortSparseNdArray, ShortSparseSlice, SparseNdArray, SparseSlice

public interface Shaped
Any data container with a given Shape.
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
     
     
    default long
    Computes and returns the total size of this container, in number of values.
  • Method Details

    • shape

      Shape shape()
      Returns:
      the shape of this container
    • rank

      default int rank()
      Returns:
      the rank of this container
    • size

      default long size()
      Computes and returns the total size of this container, in number of values.

      For example, given a 3x3x2 matrix, the return value will be 18.

      Returns:
      number of values in this element