def Mat.map
import bend-tensors@0.0.0.2/bend_tensors.bend as BendTensorsimport 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)}