def l1_normalize_go

mlbend-preprocess@0.1.0.0 · main.bend:116

import mlbend-preprocess@0.1.0.0/main.bend as MlbendPreprocess
import Base

116# The rows of a matrix, each divided by the sum of its absolute values.
117def l1_normalize_go(+rows: List<&2, List<&2, F32>>, +acc: List<&2, List<&2, F32>>) ->
118  List<&2, List<&2, F32>>:
119  match rows:
120    case Nil{}:
121      acc
122    case Con{row, t}:
123      l1_normalize_go(t, List.append(&2, List<&2, F32>, acc, Con{l1_row(row), Nil{}}))

Uses (4)

Used by (1)