def amax_l

bendtorch@1.3.0.0 · dtype.bend:326

import bendtorch@1.3.0.0/dtype.bend as Dtype
import Base

326def amax_l(xs: List<&2, F32>, +acc: F32) -> F32:
327  match xs:
328    case Nil{}:
329      acc
330    case Con{+h, t}:
331      amax_l(t, F32.max(acc, F32.abs(h)))

Uses (4)

Used by (1)