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

Function pabsdiff

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

Source from the content-addressed store, hash-verified

711
712/** \internal \returns the min of \a a and \a b (coeff-wise) */
713template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
714pabsdiff(const Packet& a, const Packet& b) { return pselect(pcmp_lt(a, b), psub(b, a), psub(a, b)); }
715
716/** \internal \returns a packet version of \a *from, from must be properly aligned */
717template<typename Packet> EIGEN_DEVICE_FUNC inline Packet

Callers 1

packetOpMethod · 0.85

Calls 3

pselectFunction · 0.70
pcmp_ltFunction · 0.70
psubFunction · 0.70

Tested by

no test coverage detected