public interface IntegerTensor extends FixedPointTensor<java.lang.Integer,IntegerTensor>, io.improbable.keanu.kotlin.IntegerOperators<IntegerTensor>
Tensor.FlattenedView<N>ONE_BY_ONE_SHAPE, SCALAR_SHAPE, SCALAR_STRIDE| Modifier and Type | Method and Description |
|---|---|
static IntegerTensor |
concat(IntegerTensor... toConcat) |
static IntegerTensor |
concat(int dimension,
IntegerTensor... toConcat) |
static IntegerTensor |
create(int... values) |
static IntegerTensor |
create(int[] values,
long... shape) |
static IntegerTensor |
create(int value,
long[] shape) |
static IntegerTensor |
create(long... values)
Creates an IntegerTensor from a long[].
|
static IntegerTensor |
create(long[] values,
long... shape)
Creates an IntegerTensor from a long[].
|
default IntegerTensor |
div(int value) |
static IntegerTensor |
eye(int n) |
static IntegerTensor |
max(IntegerTensor a,
IntegerTensor b) |
static IntegerTensor |
min(IntegerTensor a,
IntegerTensor b) |
default IntegerTensor |
minus(int value) |
static IntegerTensor |
ones(long... shape) |
default IntegerTensor |
plus(int value) |
default IntegerTensor |
pow(int exponent) |
default IntegerTensor |
reverseDiv(int value) |
default IntegerTensor |
reverseMinus(int value) |
static IntegerTensor |
scalar(int scalarValue) |
static IntegerTensor |
stack(int dimension,
IntegerTensor... toStack) |
default IntegerTensor |
times(int value) |
static IntegerTensor |
vector(int... values) |
static IntegerTensor |
zeros(long... shape) |
mod, mod, modInPlace, modInPlaceabs, absInPlace, apply, applyInPlace, argMax, argMax, argMin, argMin, asFlatDoubleArray, asFlatIntegerArray, average, clamp, clampInPlace, cumProd, cumProdInPlace, cumSum, cumSumInPlace, div, div, divInPlace, divInPlace, equalsWithinEpsilon, greaterThan, greaterThan, greaterThanMask, greaterThanOrEqual, greaterThanOrEqual, greaterThanOrEqualToMask, lessThan, lessThan, lessThanMask, lessThanOrEqual, lessThanOrEqual, lessThanOrEqualToMask, 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, safeLogTimesInPlace, setAllInPlace, setWithMask, setWithMaskInPlace, standardDeviation, sum, sum, tensorMultiply, times, times, timesInPlace, timesInPlace, toDouble, toInteger, unaryMinus, unaryMinusInPlaceasFlatArray, asFlatList, broadcast, create, createFilled, diag, duplicate, elementwiseEquals, elementwiseEquals, elementwiseEquals, expandDims, get, getFlattenedView, getLength, getRank, getShape, getStride, getValue, hasSameShapeAs, hasSameShapeAs, isLengthOne, isMatrix, isScalar, isVector, moveAxis, permute, reshape, scalar, setValue, slice, slice, slice, sliceAlongDimension, split, squeeze, swapAxis, take, transposestatic IntegerTensor create(int value, long[] shape)
static IntegerTensor create(int[] values, long... shape)
static IntegerTensor create(int... values)
static IntegerTensor create(long[] values, long... shape)
values - long[] of valuesshape - shape of the tensorstatic IntegerTensor create(long... values)
values - long[] of valuesstatic IntegerTensor ones(long... shape)
static IntegerTensor eye(int n)
static IntegerTensor zeros(long... shape)
static IntegerTensor scalar(int scalarValue)
scalar in interface Tensor<java.lang.Integer,IntegerTensor>static IntegerTensor vector(int... values)
static IntegerTensor stack(int dimension, IntegerTensor... toStack)
dimension - the dimension along which toStack are stackedtoStack - an array of IntegerTensore.g. A, B, C = IntegerTensor.ones(4, 2)
IntegerTensor.stack(0, A, B, C) gives IntegerTensor.ones(3, 4, 2)
IntegerTensor.stack(1, A, B, C) gives IntegerTensor.ones(4, 3, 2)
IntegerTensor.stack(2, A, B, C) gives IntegerTensor.ones(4, 2, 3)
IntegerTensor.stack(-1, A, B, C) gives IntegerTensor.ones(4, 2, 3)
static IntegerTensor concat(IntegerTensor... toConcat)
static IntegerTensor concat(int dimension, IntegerTensor... toConcat)
dimension - the dimension along which the tensors will be joinedtoConcat - an array of IntegerTensore.g. A, B, C = IntegerTensor.ones(4, 2)
IntegerTensor.concat(0, A, B, C) gives IntegerTensor.ones(12, 2)
static IntegerTensor min(IntegerTensor a, IntegerTensor b)
static IntegerTensor max(IntegerTensor a, IntegerTensor b)
default IntegerTensor plus(int value)
plus in interface io.improbable.keanu.kotlin.IntegerOperators<IntegerTensor>default IntegerTensor minus(int value)
minus in interface io.improbable.keanu.kotlin.IntegerOperators<IntegerTensor>default IntegerTensor reverseMinus(int value)
reverseMinus in interface io.improbable.keanu.kotlin.IntegerOperators<IntegerTensor>default IntegerTensor times(int value)
times in interface io.improbable.keanu.kotlin.IntegerOperators<IntegerTensor>default IntegerTensor div(int value)
div in interface io.improbable.keanu.kotlin.IntegerOperators<IntegerTensor>default IntegerTensor reverseDiv(int value)
reverseDiv in interface io.improbable.keanu.kotlin.IntegerOperators<IntegerTensor>default IntegerTensor pow(int exponent)
pow in interface io.improbable.keanu.kotlin.IntegerOperators<IntegerTensor>