public class Nd4jDoubleTensor extends Nd4jFloatingPointTensor<java.lang.Double,DoubleTensor> implements DoubleTensor
Tensor.FlattenedView<N>tensorONE_BY_ONE_SHAPE, SCALAR_SHAPE, SCALAR_STRIDE| Constructor and Description |
|---|
Nd4jDoubleTensor(double[] data,
long[] shape) |
Nd4jDoubleTensor(org.nd4j.linalg.api.ndarray.INDArray tensor) |
| Modifier and Type | Method and Description |
|---|---|
static Nd4jDoubleTensor |
arange(double start,
double end) |
static Nd4jDoubleTensor |
arange(double start,
double end,
double stepSize) |
int |
argMax()
Find the index into the flattened array of the tensor of the largest value, e.g.
|
IntegerTensor |
argMax(int axis)
Find the indices into the tensor of the largest values in a specified axis (dimension), e.g.
|
int |
argMin() |
IntegerTensor |
argMin(int axis) |
java.lang.Double[] |
asFlatArray() |
double[] |
asFlatDoubleArray() |
int[] |
asFlatIntegerArray() |
static Nd4jDoubleTensor |
create(double[] values) |
static Nd4jDoubleTensor |
create(double[] values,
long... shape) |
static Nd4jDoubleTensor |
create(double value,
long... shape) |
protected DoubleTensor |
create(org.nd4j.linalg.api.ndarray.INDArray tensor) |
DoubleTensor |
digammaInPlace() |
boolean |
equalsWithinEpsilon(DoubleTensor o,
java.lang.Double epsilon) |
static Nd4jDoubleTensor |
eye(long n) |
Tensor.FlattenedView<java.lang.Double> |
getFlattenedView() |
protected java.lang.Double |
getNumber(java.lang.Number number) |
protected org.nd4j.linalg.api.ndarray.INDArray |
getTensor(Tensor tensor) |
protected DoubleTensor |
getThis() |
DoubleTensor |
greaterThanMask(DoubleTensor greaterThanThis) |
DoubleTensor |
greaterThanOrEqualToMask(DoubleTensor greaterThanOrEqualToThis) |
BooleanTensor |
isFinite() |
BooleanTensor |
isInfinite() |
BooleanTensor |
isNegativeInfinity() |
BooleanTensor |
isPositiveInfinity() |
DoubleTensor |
lessThanMask(DoubleTensor lessThanThis) |
DoubleTensor |
lessThanOrEqualToMask(DoubleTensor lessThanOrEqualToThis) |
static Nd4jDoubleTensor |
linspace(double start,
double end,
int numberOfPoints) |
DoubleTensor |
logAddExp2InPlace(DoubleTensor that) |
DoubleTensor |
logAddExpInPlace(DoubleTensor that) |
DoubleTensor |
logGammaInPlace() |
int |
nanArgMax() |
IntegerTensor |
nanArgMax(int axis) |
int |
nanArgMin() |
IntegerTensor |
nanArgMin(int axis) |
static Nd4jDoubleTensor |
ones(long... shape) |
DoubleTensor |
replaceNaNInPlace(java.lang.Double value) |
DoubleTensor |
safeLogTimesInPlace(DoubleTensor y) |
static Nd4jDoubleTensor |
scalar(double scalarValue) |
protected DoubleTensor |
set(org.nd4j.linalg.api.ndarray.INDArray tensor) |
DoubleTensor |
toDouble() |
IntegerTensor |
toInteger() |
static Nd4jDoubleTensor |
zeros(long[] shape) |
acoshInPlace, acosInPlace, asinhInPlace, asinInPlace, atan2InPlace, atan2InPlace, atanhInPlace, atanInPlace, ceilInPlace, choleskyDecomposition, clampInPlace, coshInPlace, cosInPlace, determinant, exp2InPlace, expInPlace, expM1InPlace, floorInPlace, log10InPlace, log1pInPlace, log2InPlace, logInPlace, matrixInverse, matrixMultiply, notNaN, product, reciprocalInPlace, roundInPlace, setAllInPlace, sigmoidInPlace, sinhInPlace, sinInPlace, sqrtInPlace, standardizeInPlace, tanhInPlace, tanInPlace, tensorMultiplyabsInPlace, applyInPlace, average, cumProdInPlace, cumSumInPlace, div, divInPlace, divInPlace, elementwiseEquals, elementwiseEquals, fromMask, greaterThan, greaterThan, greaterThanOrEqual, greaterThanOrEqual, lessThan, lessThan, lessThanOrEqual, lessThanOrEqual, max, maxInPlace, min, minInPlace, minus, minusInPlace, minusInPlace, plus, plusInPlace, plusInPlace, powInPlace, powInPlace, product, reverseDivInPlace, reverseDivInPlace, reverseMinusInPlace, reverseMinusInPlace, setWithMaskInPlace, standardDeviation, sum, sum, times, timesInPlace, timesInPlace, unaryMinusInPlacebroadcast, diag, duplicate, equals, get, getLength, getRank, getShape, getStride, getTensor, hashCode, permute, reshape, slice, slice, split, take, toString, transposeclone, finalize, getClass, notify, notifyAll, wait, wait, waitarange, concat, concat, div, max, min, minus, plus, pow, reverseDiv, reverseMinus, stack, times, vectoracos, acosh, acoshInPlace, acosInPlace, asin, asinh, asinhInPlace, asinInPlace, atan, atan2, atan2, atan2InPlace, atan2InPlace, atanh, atanhInPlace, atanInPlace, ceil, ceilInPlace, choleskyDecomposition, cos, cosh, coshInPlace, cosInPlace, determinant, digamma, exp, exp2, exp2InPlace, expInPlace, expM1, expM1InPlace, floor, floorInPlace, isNaN, log, log10, log10InPlace, log1p, log1pInPlace, log2, log2InPlace, logAddExp, logAddExp2, logGamma, logInPlace, matrixInverse, notNaN, reciprocal, reciprocalInPlace, replaceNaN, round, roundInPlace, sigmoid, sigmoidInPlace, sin, sinh, sinhInPlace, sinInPlace, sqrt, sqrtInPlace, standardize, standardizeInPlace, tan, tanh, tanhInPlace, tanInPlaceabs, absInPlace, apply, applyInPlace, average, clamp, clampInPlace, cumProd, cumProdInPlace, cumSum, cumSumInPlace, div, div, divInPlace, divInPlace, greaterThan, greaterThan, greaterThanOrEqual, greaterThanOrEqual, lessThan, lessThan, lessThanOrEqual, lessThanOrEqual, matrixMultiply, max, max, maxInPlace, min, min, minInPlace, minus, minus, minusInPlace, minusInPlace, plus, plus, plusInPlace, plusInPlace, pow, pow, powInPlace, powInPlace, product, product, reverseDiv, reverseDiv, reverseDivInPlace, reverseDivInPlace, reverseMinus, reverseMinus, reverseMinusInPlace, reverseMinusInPlace, safeLogTimes, setAllInPlace, setWithMask, setWithMaskInPlace, standardDeviation, sum, sum, tensorMultiply, times, times, timesInPlace, timesInPlace, unaryMinus, unaryMinusInPlaceasFlatList, broadcast, create, createFilled, diag, duplicate, elementwiseEquals, 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, take, transposepublic Nd4jDoubleTensor(double[] data,
long[] shape)
public Nd4jDoubleTensor(org.nd4j.linalg.api.ndarray.INDArray tensor)
protected org.nd4j.linalg.api.ndarray.INDArray getTensor(Tensor tensor)
getTensor in class Nd4jTensor<java.lang.Double,DoubleTensor>protected DoubleTensor create(org.nd4j.linalg.api.ndarray.INDArray tensor)
create in class Nd4jTensor<java.lang.Double,DoubleTensor>protected DoubleTensor set(org.nd4j.linalg.api.ndarray.INDArray tensor)
set in class Nd4jTensor<java.lang.Double,DoubleTensor>protected DoubleTensor getThis()
getThis in class Nd4jTensor<java.lang.Double,DoubleTensor>public static Nd4jDoubleTensor scalar(double scalarValue)
scalar in interface DoubleTensorscalar in interface Tensor<java.lang.Double,DoubleTensor>public static Nd4jDoubleTensor create(double[] values, long... shape)
create in interface DoubleTensorpublic static Nd4jDoubleTensor create(double value, long... shape)
create in interface DoubleTensorpublic static Nd4jDoubleTensor create(double[] values)
create in interface DoubleTensorpublic static Nd4jDoubleTensor ones(long... shape)
ones in interface DoubleTensorpublic static Nd4jDoubleTensor eye(long n)
eye in interface DoubleTensorpublic static Nd4jDoubleTensor zeros(long[] shape)
zeros in interface DoubleTensorpublic static Nd4jDoubleTensor linspace(double start, double end, int numberOfPoints)
linspace in interface DoubleTensorpublic static Nd4jDoubleTensor arange(double start, double end)
arange in interface DoubleTensorstart - start of rangeend - end of range (exclusive)public static Nd4jDoubleTensor 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 int nanArgMax()
nanArgMax in interface FloatingPointTensor<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>argMax in class Nd4jNumberTensor<java.lang.Double,DoubleTensor>public IntegerTensor nanArgMax(int axis)
nanArgMax in interface FloatingPointTensor<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>argMax in class Nd4jNumberTensor<java.lang.Double,DoubleTensor>axis - The axis (dimension) to find the largest values inpublic int nanArgMin()
nanArgMin in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public int argMin()
argMin in interface NumberTensor<java.lang.Double,DoubleTensor>argMin in class Nd4jNumberTensor<java.lang.Double,DoubleTensor>public IntegerTensor nanArgMin(int axis)
nanArgMin in interface FloatingPointTensor<java.lang.Double,DoubleTensor>public IntegerTensor argMin(int axis)
argMin in interface NumberTensor<java.lang.Double,DoubleTensor>argMin in class Nd4jNumberTensor<java.lang.Double,DoubleTensor>protected java.lang.Double getNumber(java.lang.Number number)
getNumber in class Nd4jNumberTensor<java.lang.Double,DoubleTensor>public boolean equalsWithinEpsilon(DoubleTensor o, java.lang.Double epsilon)
equalsWithinEpsilon in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor greaterThanMask(DoubleTensor greaterThanThis)
greaterThanMask in interface NumberTensor<java.lang.Double,DoubleTensor>public DoubleTensor greaterThanOrEqualToMask(DoubleTensor greaterThanOrEqualToThis)
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 lessThanOrEqualToThis)
lessThanOrEqualToMask in interface NumberTensor<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 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 replaceNaNInPlace(java.lang.Double value)
replaceNaNInPlace 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 toDouble()
toDouble in interface NumberTensor<java.lang.Double,DoubleTensor>public IntegerTensor toInteger()
toInteger in interface NumberTensor<java.lang.Double,DoubleTensor>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 Tensor.FlattenedView<java.lang.Double> getFlattenedView()
getFlattenedView in interface Tensor<java.lang.Double,DoubleTensor>