public class DenseNdArray<T> extends AbstractDenseNdArray<T,NdArray<T>>
dimensions| Modifier | Constructor and Description |
|---|---|
protected |
DenseNdArray(DataBuffer<T> buffer,
Shape shape) |
| Modifier and Type | Method and 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) |
elements, equals, get, getObject, hashCode, read, set, setObject, slice, slice, slowCopyTo, writedimensions, scalars, shape, slowEquals, slowHashCodeprotected DenseNdArray(DataBuffer<T> buffer, Shape shape)
public static <T> NdArray<T> wrap(DataBuffer<T> buffer, Shape shape)
public NdArray<T> copyTo(NdArray<T> dst)
NdArrayThe NdArray.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.
dst - array to receive a copy of the content of this arrayprotected DataBuffer<T> buffer()
buffer in class AbstractDenseNdArray<T,NdArray<T>>Copyright © 2015–2020. All rights reserved.