def product_left
bendtorch-core@0.1.0.0 · src/tensor/matmul.bend:795
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
795def product_left(-lo: Order, +ro: Order, -left: Shape.Shape, +right: Shape.Shape,
796 result: Result<&2, &2, Error, Split<lo, Shape.dimensions(left)>>) -> Result<&2, &2, Error, Product<lo, ro, left, right>>:
797 match result:
798 case Fail{error}:
799 Fail{error}
800 case Done{Split{+rows, +inner, same}}:
801 product_right(lo, ro, left, right, rows, inner, same, split_dims(ro, Shape.dimensions(right)))