def multiply
bendtorch-core@0.1.0.0 · src/tensor/matmul.bend:219
import bendtorch-core@0.1.0.0/src/tensor/matmul.bend as Matmul
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
219def multiply(+left: Shape.Shape, +right: Shape.Shape, +plan: Plan<left, right>,
220 a: Core.Tensor<left>, b: Core.Tensor<right>) ->
221 Result<&2, &1, Error, Core.Tensor<left> & Core.Tensor<right> & Core.Tensor<output_shape(left, right, plan)>>:
222 match plan:
223 case Plan{+output, rows, +inner, right_inner, +columns, le, re, oe, compatible}:
224 created(left, right, output, inner, columns, a, b, Core.new(output, 0.0))