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, withShapeModifier and TypeMethodDescriptioncopyFrom(DataBuffer<T> src) Copy the content of the source buffer into this N-dimensional array.copyTo(DataBuffer<T> dst) Copy the content of this N-dimensional array into the destination buffer.elements(int dimensionIdx) Returns a sequence of all elements at a given dimension.booleanChecks equality between n-dimensional arrays.get(long... coords) Returns the N-dimensional element of this array at the given coordinates.getObject(long... coords) Returns the value of the scalar found at the given coordinates.inthashCode()Assigns the value of the N-dimensional element found at the given coordinates.Assigns the value of the scalar found at the given coordinates.slice(long position, DimensionalSpace sliceDimensions) Creates a multi-dimensional view (or slice) of this array by mapping one or more dimensions to the given index selectors.protected voidslowCopyTo(NdArray<T> array) toString()A String showing the type and shape of this dense ndarray.Returns a new N-dimensional view of this array with the givenshape.Methods inherited from interface NdArray
streamOfObjectsModifier and TypeMethodDescriptionRetrieve all scalar values of this array as a stream of objects.
-
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
-