- java.lang.Object
-
- org.tensorflow.ndarray.impl.AbstractNdArray<T,U>
-
- org.tensorflow.ndarray.impl.dense.AbstractDenseNdArray<T,NdArray<T>>
-
- org.tensorflow.ndarray.impl.dense.DenseNdArray<T>
-
public class DenseNdArray<T> extends AbstractDenseNdArray<T,NdArray<T>>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDenseNdArray(DataBuffer<T> buffer, Shape shape)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DataBuffer<T>buffer()NdArray<T>copyTo(NdArray<T> dst)Copy the content of this array to the destination array.static <T> NdArray<T>wrap(DataBuffer<T> buffer, Shape shape)-
Methods inherited from class org.tensorflow.ndarray.impl.dense.AbstractDenseNdArray
elements, equals, get, getObject, hashCode, read, set, setObject, slice, slice, slowCopyTo, toString, write
-
Methods inherited from class org.tensorflow.ndarray.impl.AbstractNdArray
dimensions, scalars, shape, slowEquals, slowHashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.tensorflow.ndarray.NdArray
streamOfObjects
-
-
-
-
Constructor Detail
-
DenseNdArray
protected DenseNdArray(DataBuffer<T> buffer, Shape shape)
-
-
Method Detail
-
wrap
public static <T> NdArray<T> wrap(DataBuffer<T> buffer, Shape shape)
-
copyTo
public NdArray<T> copyTo(NdArray<T> dst)
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
protected DataBuffer<T> buffer()
- Specified by:
bufferin classAbstractDenseNdArray<T,NdArray<T>>
-
-