def scaled_go

mlbend-preprocess@0.1.0.0 · main.bend:215

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

215# A matrix scaled column by column, row by row.
216def scaled_go(+rows: List<&2, List<&2, F32>>, +mins: List<&2, F32>, +maxs: List<&2, F32>,
217  +acc: List<&2, List<&2, F32>>) -> List<&2, List<&2, F32>>:
218  match rows:
219    case Nil{}:
220      acc
221    case Con{row, t}:
222      scaled_go(t, mins, maxs,
223        List.append(&2, List<&2, F32>, acc, Con{scale_row(row, mins, maxs), Nil{}}))

Uses (4)

Used by (1)