OperationTensorExtension<T> extension
Methods
-
binaryOperation<O, R>(Tensor<O> other, Map2<T, O, R> function, {DataType<R>? type, Tensor<R>? target})
→ Tensor<R>
-
Performs a binary element-wise operation
function
on this tensor and
other
and stores the result into target
or (if missing) into a newly
created one.
-
unaryOperation<R>(Map1<T, R> function, {DataType<R>? type, Tensor<R>? target})
→ Tensor<R>
-
Performs an unary element-wise operation
function
on this tensor and
stores the result into target
or (if missing) into a newly created one.