def Mat.map

bend-tensors@0.0.0.2 · bend_tensors.bend:1445

import bend-tensors@0.0.0.2/bend_tensors.bend as BendTensors
import Base

1445def Mat.map(~f: F32 -> F32, +rows: Nat, +cols: Nat, m: Mat<rows, cols>) -> Mat<rows, cols>:
1446  MatS{t} = m
1447  MatS{MatT.mask(VecT.depth(rows), VecT.depth(cols), MatT.map(~f, VecT.depth(rows), VecT.depth(cols), t), 0n, 0n, rows, cols)}

Uses (6)

Used by (1)