This table may help clear up the confusion.
Matlab | Julia 0.4 | Julia 0.5 | Julia 0.6 | Julia 0.7 | Julia 1.x | |
---|---|---|---|---|---|---|
sqrtm(a) |
M | M | M | M | M* | E |
sqrt(a) |
P | P | P | P* | M | M |
sqrt.(a) |
E | E | P | P | P | P |
where | ||||||
— | — | |||||
M | Matrix square root | |||||
P | Pointwise square root | |||||
* | Deprecated | |||||
E | Error |