public class GenericTensor<T> extends JVMTensor<T,GenericTensor<T>,GenericBuffer.PrimitiveGenericWrapper<T>> implements Tensor<T,GenericTensor<T>>
Tensor.FlattenedView<N>ONE_BY_ONE_SHAPE, SCALAR_SHAPE, SCALAR_STRIDE| Modifier and Type | Method and Description |
|---|---|
<R> GenericTensor<R> |
apply(Tensor<T,?> right,
java.util.function.BiFunction<T,T,R> op) |
T[] |
asFlatArray() |
protected GenericTensor<T> |
create(GenericBuffer.PrimitiveGenericWrapper<T> buffer,
long[] shape,
long[] stride) |
static <T> GenericTensor<T> |
create(T... data) |
static <T> GenericTensor<T> |
create(T[] data,
long[] shape) |
static <T> GenericTensor<T> |
createFilled(T data,
long[] shape) |
GenericTensor<T> |
duplicate() |
BooleanTensor |
elementwiseEquals(T value) |
protected JVMBuffer.ArrayWrapperFactory<T,GenericBuffer.PrimitiveGenericWrapper<T>> |
getFactory() |
Tensor.FlattenedView<T> |
getFlattenedView() |
static <T> GenericTensor<T> |
scalar(T data) |
protected GenericTensor<T> |
set(GenericBuffer.PrimitiveGenericWrapper<T> buffer,
long[] shape,
long[] stride) |
GenericTensor<T> |
take(long... index) |
argCompare, argCompare, argCompare, argCompare, broadcast, broadcastableBinaryOpWithAutoBroadcast, concat, concatOnDimensionZero, diag, diag, equals, get, getLength, getRank, getShape, getStride, hashCode, isApply, permute, permute, reshape, slice, slice, slice, split, split, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasFlatList, broadcast, create, diag, elementwiseEquals, elementwiseEquals, expandDims, get, getLength, getRank, getShape, getStride, getValue, hasSameShapeAs, hasSameShapeAs, isLengthOne, isMatrix, isScalar, isVector, moveAxis, permute, reshape, scalar, setValue, slice, slice, slice, sliceAlongDimension, split, squeeze, swapAxis, transposepublic static <T> GenericTensor<T> createFilled(T data, long[] shape)
createFilled in interface Tensor<T,GenericTensor<T>>public static <T> GenericTensor<T> create(T... data)
public static <T> GenericTensor<T> create(T[] data, long[] shape)
public static <T> GenericTensor<T> scalar(T data)
scalar in interface Tensor<T,GenericTensor<T>>public GenericTensor<T> duplicate()
duplicate in interface Tensor<T,GenericTensor<T>>public Tensor.FlattenedView<T> getFlattenedView()
getFlattenedView in interface Tensor<T,GenericTensor<T>>public BooleanTensor elementwiseEquals(T value)
elementwiseEquals in interface Tensor<T,GenericTensor<T>>public T[] asFlatArray()
asFlatArray in interface Tensor<T,GenericTensor<T>>protected GenericTensor<T> create(GenericBuffer.PrimitiveGenericWrapper<T> buffer, long[] shape, long[] stride)
create in class JVMTensor<T,GenericTensor<T>,GenericBuffer.PrimitiveGenericWrapper<T>>protected GenericTensor<T> set(GenericBuffer.PrimitiveGenericWrapper<T> buffer, long[] shape, long[] stride)
set in class JVMTensor<T,GenericTensor<T>,GenericBuffer.PrimitiveGenericWrapper<T>>protected JVMBuffer.ArrayWrapperFactory<T,GenericBuffer.PrimitiveGenericWrapper<T>> getFactory()
getFactory in class JVMTensor<T,GenericTensor<T>,GenericBuffer.PrimitiveGenericWrapper<T>>public GenericTensor<T> take(long... index)
take in interface Tensor<T,GenericTensor<T>>public <R> GenericTensor<R> apply(Tensor<T,?> right, java.util.function.BiFunction<T,T,R> op)