Bendtorch.mul2_b2: def of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/main.bend as Bendtorch Lines 2240-2244 of bendtorch@1.3.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/main.bend&start_line=2240&end_line=2244 import Base import bend-ml-tensor-array@0.1.18.0/main.bend as TA # d(a*b) = (dy*b, dy*a) def mul2_b2(+n: Nat, +c: Nat, s: Two, TA.Mat>, d: Two, TA.Mat>) -> Bwd, TA.Mat>>: match s d: case Two{a, b} Two{d1, d2}: Bwd{Unit{}, Two{mpair_a(n, c, Ew.zip(~f32_mul, n, c, d1, b)), mpair_a(n, c, Ew.zip(~f32_mul, n, c, d2, a))}, Unit{}} Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bend-ml-tensor-array@0.1.19.0/main.bend&name=Mat https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=Bwd https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=Ew.zip https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=Two https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=f32_mul https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=mpair_a