-
- All Known Subinterfaces:
BooleanNdArray,ByteNdArray,DoubleNdArray,FloatNdArray,IntNdArray,LongNdArray,NdArray<T>,ShortNdArray,SparseNdArray<T,U>
- All Known Implementing Classes:
AbstractDenseNdArray,org.tensorflow.ndarray.impl.AbstractNdArray,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 ShapedAny data container with a givenShape.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intrank()Shapeshape()default longsize()Computes and returns the total size of this container, in number of values.
-
-
-
Method Detail
-
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
-
-