Class DenseNdArray<T>
java.lang.Object
org.tensorflow.ndarray.impl.dense.AbstractDenseNdArray<T, NdArray<T>>
org.tensorflow.ndarray.impl.dense.DenseNdArray<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DataBuffer<T> buffer()Copy the content of this array to the destination array.scalars()Returns a sequence of all scalars in this array.shape()protected booleanslowEquals(NdArray<?> array) protected intstatic <T> NdArray<T> wrap(DataBuffer<T> buffer, Shape shape) Methods inherited from class AbstractDenseNdArray
copyFrom, copyTo, elements, equals, get, getObject, hashCode, set, setObject, slice, slice, slowCopyTo, toString, withShapeMethods inherited from interface NdArray
streamOfObjects
-
Field Details
-
dimensions
-
-
Constructor Details
-
DenseNdArray
-
-
Method Details
-
wrap
-
copyTo
Description copied from interface:NdArrayCopy the content of this array to the destination array.The
Shaped.shape()of the destination array must be equal to the shape of this array, or an exception is thrown. After the copy, the content of both arrays can be altered independently, without affecting each other.- Parameters:
dst- array to receive a copy of the content of this array- Returns:
- this array
-
buffer
- Specified by:
bufferin classAbstractDenseNdArray<T, NdArray<T>>
-
dimensions
-
shape
-
scalars
-
slowHashCode
protected int slowHashCode() -
slowEquals
-