Skip to content
Snippets Groups Projects
Commit 4a6bfd46 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Do not truncate the gradient out-of-place

x/|x| is only a problem if x == 0
just divide by |x|, no matter what non-zero value it is
parent ab4aec9e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment