Methods
-
abs()
→ void
-
Calculates absolute value for each element.
-
add(Tensor<T> right)
→ void
-
Calculates sum of two tensors.
-
build({bool recycle = false})
→ Tensor<T>
-
Builds tensor and resets elements to empty list.
-
ceil()
→ void
-
Calculates
ceil
for each element.
-
clamp(T lowerLimit, T upperLimit)
→ void
-
Clamps elements of this tensor.
-
cos()
→ void
-
Calculates
cos
for each element.
-
div(Tensor<T> right, {bool swapArguments = false})
→ void
-
Calculates fraction of two tensors.
-
divScalar(num value)
→ void
-
Divides elements.
-
exp()
→ void
-
Calculates exponent for each element.
-
fill(T value)
→ void
-
Fills each element with the argument.
-
floor()
→ void
-
Calculates
floor
for each element.
-
getXY(int x, int y)
→ T
-
Gets element value.
-
log()
→ void
-
Calculates logarithm for each element.
-
mul(Tensor<T> right)
→ void
-
Multiplies elements.
-
mulScalar(num value)
→ void
-
Multiplies elements by a scalar.
-
neg()
→ void
-
Negates elements.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
pow(Tensor<T> right, {bool swapArguments = false})
→ void
-
Calculates
pow(a,b)
for each element.
-
round()
→ void
-
Rounds elements.
-
setTensor(Tensor<T> tensor)
→ void
-
Initializes shape and element values with the tensor.
-
setXY(int x, int y, T value)
→ void
-
Sets element value.
-
sin()
→ void
-
Calculates
sin
for each element.
-
sq()
→ void
-
Calculates
a*a
for each element.
-
sqrt()
→ void
-
Calculates sqrt for each element.
-
sub(Tensor<T> right)
→ void
-
Subtracts elements of the arguments.
-
tan()
→ void
-
Calculates
tan
for each element.
-
toBuilder({bool copy = true})
→ TensorBuilder<T>
-
Constructs a new TensorBuilder that has this tensor.
-
toString()
→ String
-
A string representation of this object.
inherited