MCPcopy Create free account
hub / github.com/Derious/cuMPC / pfirst

Function pfirst

dependence/eigen-3.4.0/Eigen/src/Core/GenericPacketMath.h:843–845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

841/** \internal \returns the first element of a packet */
842template<typename Packet>
843EIGEN_DEVICE_FUNC inline typename unpacket_traits<Packet>::type
844pfirst(const Packet& a)
845{ return a; }
846
847/** \internal \returns the sum of the elements of upper and lower half of \a a if \a a is larger than 4.
848 * 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 2

runMethod · 0.50
packetmathFunction · 0.50

Calls

no outgoing calls

Tested by 2

runMethod · 0.40
packetmathFunction · 0.40