One-sided clamp?

There’s an example in the docs:

julia> clamp.((-4:4)', 0, Inf)
 1×9 Matrix{Float64}:
   0.0  0.0  0.0  0.0  0.0  1.0  2.0  3.0  4.0
1 Like