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

Function pblend

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

Source from the content-addressed store, hash-verified

1286};
1287
1288template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
1289pblend(const Selector<unpacket_traits<Packet>::size>& ifPacket, const Packet& thenPacket, const Packet& elsePacket) {
1290 return ifPacket.select[0] ? thenPacket : elsePacket;
1291}
1292
1293/** \internal \returns 1 / a (coeff-wise) */
1294template <typename Packet>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected