How to perform element-wise square root of a vector in Julia?

Viewed 2948

I need to perform the square root of an array in Julia but it seems sqrt() function just performs square roots on scalars and square matrices. Is there any simple compact way to do it without using loops?

1 Answers
Related