How about @views m[:,2] .= sin.(m[:, 2]). This will also work without the @views but then will be making a copy with m[:, 2].
1 Like
How about @views m[:,2] .= sin.(m[:, 2]). This will also work without the @views but then will be making a copy with m[:, 2].