![]() |
|
#include <MathFunctionsImpl.h>
Static Public Member Functions | |
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet | run (const Packet &a, const Packet &approx_rsqrt) |
Fast sqrt using Newton-Raphson's method.
Preconditions:
If the preconditions are satisfied, which they are for for the _*_rsqrt_ps instructions on x86, the result has a maximum relative error of 2 ulps, and correctly handles zero and infinity, and NaN. Positive denormal inputs are treated as zero.
|
inlinestatic |
References a, Eigen::internal::pcmp_eq(), Eigen::internal::pmadd(), Eigen::internal::pmul(), Eigen::internal::por(), Eigen::internal::pselect(), Eigen::internal::pzero(), and Eigen::numext::rsqrt().