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

Function pnegate

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

Source from the content-addressed store, hash-verified

336
337/** \internal \returns -a (coeff-wise) */
338template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
339pnegate(const Packet& a) { return -a; }
340
341template<> EIGEN_DEVICE_FUNC inline bool
342pnegate(const bool& a) { return !a; }

Callers 2

pnmaddFunction · 0.70
pnmsubFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected