Disabling DomainError (in sqrt())?

bremez
Fri, 14 Oct 2022 21:14:41 +0000
General Usage

Is there any way one can remove the negative number check for sqrt(Float64)? Neither @inbounds or @fastmath seems to do the trick (by checking the generated @code_native). However, it seems that, say, LinearAlgebra.norm() avoids this check when it calls sqrt.

22 posts - 7 participants