def Vec4.map
import bend-tensors@0.0.0.2/bend_tensors.bend as BendTensorsimport Base
56def Vec4.map(~f: F32 -> F32, v: Vec4) -> Vec4:
57 Vec4{x0, x1, x2, x3} = v
58 Vec4{f(x0), f(x1), f(x2), f(x3)}
import bend-tensors@0.0.0.2/bend_tensors.bend as BendTensorsimport Base
56def Vec4.map(~f: F32 -> F32, v: Vec4) -> Vec4:
57 Vec4{x0, x1, x2, x3} = v
58 Vec4{f(x0), f(x1), f(x2), f(x3)}