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

Function pcarg

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

Source from the content-addressed store, hash-verified

1371/** \internal \returns the argument of \a a as a complex number */
1372template <typename Packet, std::enable_if_t<is_scalar<Packet>::value, int> = 0>
1373EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE Packet pcarg(const Packet& a) {
1374 return Packet(numext::arg(a));
1375}
1376
1377/** \internal \returns the argument of \a a as a complex number */
1378template <typename Packet, std::enable_if_t<!is_scalar<Packet>::value, int> = 0>

Callers 1

packetOpMethod · 0.85

Calls 5

patan2Function · 0.85
argFunction · 0.70
pcplxflipFunction · 0.70
pandFunction · 0.70
peven_maskFunction · 0.70

Tested by

no test coverage detected