def ph_mat
import bendtorch-fast@1.3.0.0/main.bend as BendtorchFastimport Base
import bendtorch@1.3.0.0/main.bend as T
151def ph_mat(+r: Nat, +c: Nat, +o: T.Opt, wa: Array<F32>, ga: Array<F32>, t: T.PTree) -> T.MatStep<r, c>:
152 match t:
153 case T.PNew{v16}:
154 ph_leafs(r, c, o, wa, ga, T.ph_new(Nat.mul(r, c), v16))
155 case t:
156 ph_leafs(r, c, o, wa, ga, t)