-
-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
JuliaLang/julia
#13681Description
I find myself commonly writing the trivial utility function normalize(x) = x/norm(x) for geometric computing. Julia has the useful utility cross() in linalg - maybe normalize() and normalize!() belong there too? I see that ImmutableArrays.jl has defined unit() for this though that name clashes with a different use in SIUnits.
For greater than 1D arrays, normalize(x, dim) acting along a dimension would be a useful generalization for me personally. A p-norm version might also be useful.
@SimonDanisch - this is very relevant to 3D graphics - maybe you have some thoughts?
wolfiex
Metadata
Metadata
Assignees
Labels
No labels