def l2_normalize

mlbend-preprocess@0.1.0.0 · main.bend:188

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

188# The L2 normaliser: every row divided by the length of its arrow.
189def l2_normalize(+r: Nat, +c: Nat, +a: T.Mat<r, c>) -> T.Mat<r, c>:
190  mat_of(r, c, l2_normalize_go(T.Mat.to_rows(r, c, a), Nil{}))

Uses (6)

Used by (0)

No other definition uses this definition.