def grows

bend-ml-tensor-array@0.1.19.0 · main.bend:98

import bend-ml-tensor-array@0.1.19.0/main.bend as BendMlTensorArray
import Base

98def grows(+ac: Bool, nleft: Nat, +mm1: Nat, +kn: Nat, +i: U32, +arow: U32, +sa: U32, +sb: U32, +bcol: U32, +mu: U32, g: G) -> G:
99  match nleft g:
100    case 0n G{a, b, c}:
101      G{a, b, c}
102    case 1n+p G{a, b, c}:
103      grows(ac, p, mm1, kn, (i + 1 : U32), arow, sa, sb, bcol, mu, gcols(ac, mm1, kn, (i * arow : U32), 0, sa, sb, bcol, (i * mu : U32), c, dotg(kn, (i * arow : U32), 0, sa, sb, 0.0, Array.get(F32, a, (i * arow : U32)), Array.get(F32, b, 0))))

Uses (10)

Used by (1)