| 693 | */ |
| 694 | template <typename Packet> |
| 695 | EIGEN_DEVICE_FUNC inline Packet pfrexp(const Packet& a, Packet& exponent) { |
| 696 | int exp; |
| 697 | EIGEN_USING_STD(frexp); |
| 698 | Packet result = static_cast<Packet>(frexp(a, &exp)); |
| 699 | exponent = static_cast<Packet>(exp); |
| 700 | return result; |
| 701 | } |
| 702 | |
| 703 | /** \internal \returns a * 2^((int)exponent) |
| 704 | * See https://en.cppreference.com/w/cpp/numeric/math/ldexp |
nothing calls this directly
no outgoing calls
no test coverage detected