public interface IntegerTensor extends FixedPointTensor<java.lang.Integer,IntegerTensor>, io.improbable.keanu.kotlin.IntegerOperators<IntegerTensor>
Tensor.FlattenedView<N>
SCALAR_SHAPE
Modifier and Type | Method and Description |
---|---|
static IntegerTensor |
arange(int end) |
static IntegerTensor |
arange(int start,
int end) |
static IntegerTensor |
arange(int start,
int end,
int stepSize) |
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(long... values)
Creates an IntegerTensor from a long[].
|
static IntegerTensor |
create(long[] values,
long... shape)
Creates an IntegerTensor from a long[].
|
static IntegerTensor |
create(long value,
long[] shape) |
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(long 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, modInPlace
abs, absInPlace, apply, applyInPlace, asFlatDoubleArray, asFlatIntegerArray, asFlatLongArray, clamp, clampInPlace, cumProd, cumProdInPlace, cumSum, cumSumInPlace, div, div, divInPlace, divInPlace, equalsWithinEpsilon, greaterThan, greaterThan, greaterThanOrEqual, greaterThanOrEqual, lessThan, lessThan, lessThanOrEqual, lessThanOrEqual, max, maxInPlace, min, minInPlace, minus, minus, minusInPlace, minusInPlace, plus, plus, plusInPlace, plusInPlace, pow, pow, powInPlace, powInPlace, reverseDiv, reverseDiv, reverseDivInPlace, reverseDivInPlace, reverseMinus, reverseMinus, reverseMinusInPlace, reverseMinusInPlace, setAllInPlace, setWithMask, setWithMaskInPlace, sign, signInPlace, sumNumber, times, times, timesInPlace, timesInPlace, toBoolean, toDouble, toInteger, toLong, unaryMinus, unaryMinusInPlace
asFlatArray, asFlatList, create, createFilled, duplicate, elementwiseEquals, elementwiseEquals, getFlattenedView, getValue, hasShape, notEqualTo, notEqualTo, reverseSlice, scalar, setValue, split
argMax, argMax, argMin, argMin, greaterThanMask, greaterThanOrEqualToMask, lessThanMask, lessThanOrEqualToMask, matrixMultiply, matrixMultiply, max, min, product, product, sum, sum, tensorMultiply
broadcast, diag, diagPart, expandDims, fillTriangular, get, getLength, getRank, getShape, getStride, isLengthOne, isMatrix, isScalar, isVector, moveAxis, permute, reshape, slice, slice, slice, sliceAlongDimension, squeeze, swapAxis, take, transpose, trianglePart, triLower, triUpper, where
static IntegerTensor create(long 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(long scalarValue)
scalar
in interface Tensor<java.lang.Integer,IntegerTensor>
static IntegerTensor vector(int... values)
static IntegerTensor arange(int start, int end)
start
- start of rangeend
- end of range (exclusive)static IntegerTensor arange(int end)
static IntegerTensor arange(int start, int end, int stepSize)
start
- start of rangeend
- end of range (exclusive)stepSize
- size of step from start to endstatic IntegerTensor stack(int dimension, IntegerTensor... toStack)
static IntegerTensor concat(IntegerTensor... toConcat)
static IntegerTensor concat(int dimension, IntegerTensor... toConcat)
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>