Skip to content

Commit

Permalink
stray 1/n term from performance tips
Browse files Browse the repository at this point in the history
  • Loading branch information
pvazteixeira committed Sep 7, 2018
1 parent d756a92 commit a145245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TransformUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function fast_norm_TU(u)
@fastmath @inbounds @simd for i in 1:n
s += u[i]^2
end
@fastmath @inbounds return sqrt(s/n)
@fastmath @inbounds return sqrt(s)
end

function normalize!(q::Quaternion, tol=1e-6)
Expand Down

0 comments on commit a145245

Please sign in to comment.