def rows.col_sums
import bend-ml-tensor@0.1.2.0/main.bend as BendMlTensorimport Base
184# column sums
185def rows.col_sums(c: Nat, +rows: List<&2, List<&2, F32>>) -> List<&2, F32>:
186 match c:
187 case 0n:
188 Nil{}
189 case 1n+p:
190 sum.go(heads(rows), 0.0) <> rows.col_sums(p, tails(rows))