def eight_terms
bendtorch-core@0.1.0.0 · src/tensor/matmul.bend:540
import bendtorch-core@0.1.0.0/src/tensor/matmul.bend as Matmul
import Base
540
541def eight_terms(+acc: Eight, +x: F32, +ys: Eight) -> Eight:
542 Eight{+a0, +a1, +a2, +a3, +a4, +a5, +a6, +a7} = acc
543 Eight{+y0, +y1, +y2, +y3, +y4, +y5, +y6, +y7} = ys
544 Eight{F32.add(a0, F32.mul(x, y0)), F32.add(a1, F32.mul(x, y1)), F32.add(a2, F32.mul(x, y2)), F32.add(a3, F32.mul(x, y3)), F32.add(a4, F32.mul(x, y4)), F32.add(a5, F32.mul(x, y5)), F32.add(a6, F32.mul(x, y6)), F32.add(a7, F32.mul(x, y7))}