MCPcopy Create free account
hub / github.com/TinyMPC/TinyMPC / pfrexp

Function pfrexp

include/Eigen/Eigen/src/Core/GenericPacketMath.h:695–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693 */
694template <typename Packet>
695EIGEN_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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected