| 48 | |
| 49 | template <typename T> |
| 50 | inline T REF_FREXP(const T& x, T& exp) { |
| 51 | int iexp; |
| 52 | EIGEN_USING_STD(frexp) |
| 53 | const T out = static_cast<T>(frexp(x, &iexp)); |
| 54 | exp = static_cast<T>(iexp); |
| 55 | return out; |
| 56 | } |
| 57 | |
| 58 | template <typename T> |
| 59 | inline T REF_LDEXP(const T& x, const T& exp) { |