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

Function pnmadd

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

Source from the content-addressed store, hash-verified

1174/** \internal \returns -(a * b) + c (coeff-wise) */
1175template <typename Packet>
1176EIGEN_DEVICE_FUNC inline Packet pnmadd(const Packet& a, const Packet& b,
1177 const Packet& c) {
1178 return padd(pnegate(pmul(a, b)), c);
1179}
1180
1181/** \internal \returns -(a * b) - c (coeff-wise) */
1182template <typename Packet>

Callers 1

runMethod · 0.70

Calls 3

paddFunction · 0.70
pnegateFunction · 0.70
pmulFunction · 0.70

Tested by

no test coverage detected