public class JVMDoubleTensor extends JVMFloatingPointTensor<java.lang.Double,DoubleTensor,DoubleBuffer.PrimitiveDoubleWrapper> implements DoubleTensor
Tensor.FlattenedView<N>ONE_BY_ONE_SHAPE, SCALAR_SHAPE, SCALAR_STRIDEcumProdInPlace, cumSumInPlace, product, product, sum, sumargCompare, 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, waitarange, concat, create, div, max, min, minus, plus, pow, reverseDiv, reverseMinus, stack, times, vectoracos, acosh, asin, asinh, atan, atan2, atan2, atanh, ceil, cos, cosh, digamma, exp, exp2, expM1, floor, log, log10, log1p, log2, logAddExp, logAddExp2, logGamma, reciprocal, replaceNaN, round, sigmoid, sin, sinh, sqrt, standardize, tan, tanhabs, apply, clamp, cumProd, cumProdInPlace, cumSum, cumSumInPlace, div, div, max, min, minus, minus, plus, plus, pow, pow, product, product, reverseDiv, reverseDiv, reverseMinus, reverseMinus, safeLogTimes, sum, sum, times, times, unaryMinusasFlatList, broadcast, create, createFilled, diag, 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, transposeprotected DoubleTensor create(DoubleBuffer.PrimitiveDoubleWrapper buffer, long[] shape, long[] stride)
create in class JVMTensor<java.lang.Double,DoubleTensor,DoubleBuffer.PrimitiveDoubleWrapper>protected DoubleTensor set(DoubleBuffer.PrimitiveDoubleWrapper buffer, long[] shape, long[] stride)
set in class JVMTensor<java.lang.Double,DoubleTensor,DoubleBuffer.PrimitiveDoubleWrapper>protected DoubleBuffer.DoubleArrayWrapperFactory getFactory()
getFactory in class JVMNumberTensor<java.lang.Double,DoubleTensor,DoubleBuffer.PrimitiveDoubleWrapper>public static JVMDoubleTensor scalar(double scalarValue)
scalar in interface DoubleTensorscalar in interface Tensor<java.lang.Double,DoubleTensor>public static JVMDoubleTensor create(double[] values, long... shape)
create in interface DoubleTensorpublic static JVMDoubleTensor create(double value, long... shape)
create in interface DoubleTensorpublic static JVMDoubleTensor ones(long... shape)
ones in interface DoubleTensorpublic static JVMDoubleTensor zeros(long... shape)
zeros in interface DoubleTensorpublic static JVMDoubleTensor eye(long n)
eye in interface DoubleTensorpublic static JVMDoubleTensor arange(double start, double end)
arange in interface DoubleTensorstart - start of rangeend - end of range (exclusive)public static JVMDoubleTensor arange(double start, double end, double stepSize)
arange in interface DoubleTensorstart - start of rangeend - end of range (exclusive)stepSize - size of step from start to endpublic static JVMDoubleTensor linspace(double start, double end, int numberOfPoints)
linspace in interface DoubleTensorpublic BooleanTensor elementwiseEquals(Tensor that)
elementwiseEquals in interface Tensor<java.lang.Double,DoubleTensor>public BooleanTensor elementwiseEquals(java.lang.Double value)
elementwiseEquals in interface Tensor<java.lang.Double,DoubleTensor>public JVMDoubleTensor duplicate()
duplicate in interface Tensor<java.lang.Double,DoubleTensor>public DoubleTensor toDouble()
toDouble in interface NumberTensor<java.lang.Double,DoubleTensor>public IntegerTensor toInteger()
toInteger in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor choleskyDecomposition()
choleskyDecomposition in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public java.lang.Double determinant()
determinant in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor matrixInverse()
matrixInverse in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor matrixMultiply(DoubleTensor that)
matrixMultiply in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor tensorMultiply(DoubleTensor that, int[] dimsLeft, int[] dimsRight)
tensorMultiply in interface NumberTensor<java.lang.Double,DoubleTensor>public int argMax()
NumberTensorDoubleTensor tensor = DoubleTensor.arange(0, 6).reshape(2, 3); // [[0., 1., 2.], // [3., 4., 5.]] IntegerTensor max = tensor.argMax(); // [[5]]
argMax in interface NumberTensor<java.lang.Double,DoubleTensor>public IntegerTensor argMax(int axis)
NumberTensorDoubleTensor tensor = DoubleTensor.arange(0, 6).reshape(2, 3); // [[0., 1., 2.], // [3., 4., 5.]] IntegerTensor maxesFor0 = tensor.argMax(0); // [[1, 1, 1]] IntegerTensor maxFor1 = tensor.argMax(1); // [[2, 2]]
argMax in interface NumberTensor<java.lang.Double,DoubleTensor>axis - The axis (dimension) to find the largest values inpublic IntegerTensor nanArgMax(int axis)
nanArgMax in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public int nanArgMax()
nanArgMax in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public IntegerTensor argMin(int axis)
argMin in interface NumberTensor<java.lang.Double,DoubleTensor>public int argMin()
argMin in interface NumberTensor<java.lang.Double,DoubleTensor>public IntegerTensor nanArgMin(int axis)
nanArgMin in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public int nanArgMin()
nanArgMin in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor unaryMinusInPlace()
unaryMinusInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor absInPlace()
absInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor applyInPlace(java.util.function.Function<java.lang.Double,java.lang.Double> function)
applyInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor greaterThanMask(DoubleTensor greaterThanThis)
greaterThanMask in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor greaterThanOrEqualToMask(DoubleTensor greaterThanThis)
greaterThanOrEqualToMask in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor lessThanMask(DoubleTensor lessThanThis)
lessThanMask in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor lessThanOrEqualToMask(DoubleTensor lessThanThis)
lessThanOrEqualToMask in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor setWithMaskInPlace(DoubleTensor mask, java.lang.Double value)
setWithMaskInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor setWithMask(DoubleTensor mask, java.lang.Double value)
setWithMask in interface NumberTensor<java.lang.Double,DoubleTensor>public BooleanTensor lessThan(DoubleTensor that)
lessThan in interface NumberTensor<java.lang.Double,DoubleTensor>public BooleanTensor lessThanOrEqual(DoubleTensor that)
lessThanOrEqual in interface NumberTensor<java.lang.Double,DoubleTensor>public BooleanTensor greaterThan(DoubleTensor that)
greaterThan in interface NumberTensor<java.lang.Double,DoubleTensor>public BooleanTensor greaterThanOrEqual(DoubleTensor that)
greaterThanOrEqual in interface NumberTensor<java.lang.Double,DoubleTensor>public BooleanTensor lessThan(java.lang.Double value)
lessThan in interface NumberTensor<java.lang.Double,DoubleTensor>public BooleanTensor lessThanOrEqual(java.lang.Double value)
lessThanOrEqual in interface NumberTensor<java.lang.Double,DoubleTensor>public BooleanTensor greaterThan(java.lang.Double value)
greaterThan in interface NumberTensor<java.lang.Double,DoubleTensor>public BooleanTensor greaterThanOrEqual(java.lang.Double value)
greaterThanOrEqual in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor powInPlace(DoubleTensor exponent)
powInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor powInPlace(java.lang.Double exponent)
powInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor atan2InPlace(java.lang.Double y)
atan2InPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor atan2InPlace(DoubleTensor y)
atan2InPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public java.lang.Double average()
average in interface NumberTensor<java.lang.Double,DoubleTensor>public java.lang.Double standardDeviation()
standardDeviation in interface NumberTensor<java.lang.Double,DoubleTensor>public boolean equalsWithinEpsilon(DoubleTensor other, java.lang.Double epsilon)
equalsWithinEpsilon in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor sigmoidInPlace()
sigmoidInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor take(long... index)
take in interface Tensor<java.lang.Double,DoubleTensor>public static DoubleTensor concat(int dimension, DoubleTensor... toConcat)
concat in interface DoubleTensordimension - the dimension along which the tensors will be joinedtoConcat - an array of DoubleTensore.g. A, B, C = DoubleTensor.ones(4, 2)
DoubleTensor.concat(0, A, B, C) gives DoubleTensor.ones(12, 2)
public double[] asFlatDoubleArray()
asFlatDoubleArray in interface NumberTensor<java.lang.Double,DoubleTensor>public int[] asFlatIntegerArray()
asFlatIntegerArray in interface NumberTensor<java.lang.Double,DoubleTensor>public java.lang.Double[] asFlatArray()
asFlatArray in interface Tensor<java.lang.Double,DoubleTensor>public DoubleTensor reciprocalInPlace()
reciprocalInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor sqrtInPlace()
sqrtInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor logInPlace()
logInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor safeLogTimesInPlace(DoubleTensor y)
safeLogTimesInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor logGammaInPlace()
logGammaInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor digammaInPlace()
digammaInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor sinInPlace()
sinInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor cosInPlace()
cosInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor tanInPlace()
tanInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor atanInPlace()
atanInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor asinInPlace()
asinInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor acosInPlace()
acosInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor sinhInPlace()
sinhInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor coshInPlace()
coshInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor tanhInPlace()
tanhInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor asinhInPlace()
asinhInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor acoshInPlace()
acoshInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor atanhInPlace()
atanhInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor expInPlace()
expInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor logAddExp2InPlace(DoubleTensor that)
logAddExp2InPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor logAddExpInPlace(DoubleTensor that)
logAddExpInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor log1pInPlace()
log1pInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor log2InPlace()
log2InPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor log10InPlace()
log10InPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor exp2InPlace()
exp2InPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor expM1InPlace()
expM1InPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public java.lang.Double min()
min in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor minInPlace(DoubleTensor that)
minInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public java.lang.Double max()
max in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor maxInPlace(DoubleTensor that)
maxInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor clampInPlace(DoubleTensor min, DoubleTensor max)
clampInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor ceilInPlace()
ceilInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor floorInPlace()
floorInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor roundInPlace()
roundInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor standardizeInPlace()
standardizeInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor replaceNaNInPlace(java.lang.Double value)
replaceNaNInPlace in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor setAllInPlace(java.lang.Double value)
setAllInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public BooleanTensor notNaN()
notNaN in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public BooleanTensor isNaN()
isNaN in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public BooleanTensor isFinite()
isFinite in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public BooleanTensor isInfinite()
isInfinite in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public BooleanTensor isNegativeInfinity()
isNegativeInfinity in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public BooleanTensor isPositiveInfinity()
isPositiveInfinity in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public DoubleTensor minusInPlace(java.lang.Double value)
minusInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor minusInPlace(DoubleTensor that)
minusInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor reverseMinusInPlace(DoubleTensor that)
reverseMinusInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor reverseMinusInPlace(java.lang.Double value)
reverseMinusInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor plusInPlace(java.lang.Double value)
plusInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor plusInPlace(DoubleTensor that)
plusInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor timesInPlace(java.lang.Double value)
timesInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor timesInPlace(DoubleTensor that)
timesInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor divInPlace(java.lang.Double that)
divInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor divInPlace(DoubleTensor that)
divInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor reverseDivInPlace(java.lang.Double value)
reverseDivInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor reverseDivInPlace(DoubleTensor that)
reverseDivInPlace in interface NumberTensor<java.lang.Double,DoubleTensor>public Tensor.FlattenedView<java.lang.Double> getFlattenedView()
getFlattenedView in interface Tensor<java.lang.Double,DoubleTensor>