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

Function pfirst

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

Source from the content-addressed store, hash-verified

1054/** \internal \returns the first element of a packet */
1055template<typename Packet>
1056EIGEN_DEVICE_FUNC inline typename unpacket_traits<Packet>::type
1057pfirst(const Packet& a)
1058{ return a; }
1059
1060/** \internal \returns the sum of the elements of upper and lower half of \a a if \a a is larger than 4.
1061 * For a packet {a0, a1, a2, a3, a4, a5, a6, a7}, it returns a half packet {a0+a4, a1+a5, a2+a6, a3+a7}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected