Actually, Julia var
function does not involve squaring of the unrelying elements. It explicitly uses abs2
, so that the result of std(Vector{Complex})
is correct. I think norm(x)^2
is a relatively obvious generalization of abs2
to vectors.
Actually, Julia var
function does not involve squaring of the unrelying elements. It explicitly uses abs2
, so that the result of std(Vector{Complex})
is correct. I think norm(x)^2
is a relatively obvious generalization of abs2
to vectors.