def array.of

bend-blas-lapack@0.0.0.1 · mat.bend:44

import bend-blas-lapack@0.0.0.1/mat.bend as Mat
import Base

44# an array of the smallest power-of-two size holding count floats,
45# the first ones from xs (cut or padded with 0.0), the rest 0.0
46def array.of(+count: Nat, xs: List<&2, F32>) -> Array<F32>:
47  fill.go(List.take(&2, F32, xs, count), 0, Array.new(F32, depth(count), 0.0))

Uses (8)

Used by (2)