def l2_normalize_go
import mlbend-preprocess@0.1.0.0/main.bend as MlbendPreprocessimport Base
179# The rows of a matrix, each divided by the length of its arrow.
180def l2_normalize_go(+rows: List<&2, List<&2, F32>>, +acc: List<&2, List<&2, F32>>) ->
181 List<&2, List<&2, F32>>:
182 match rows:
183 case Nil{}:
184 acc
185 case Con{row, t}:
186 l2_normalize_go(t, List.append(&2, List<&2, F32>, acc, Con{l2_row(row), Nil{}}))