MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / atan2

Method atan2

dnn/include/megdnn/dtype/half.hpp:1405–1411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1403 /// \param y second argument
1404 /// \return function value stored in single-preicision
1405 MEGDNN_HOST MEGDNN_DEVICE static expr atan2(float x, float y) {
1406#if defined(__CUDA_ARCH__)
1407 return expr(atan2f(x, y));
1408#else
1409 return expr(std::atan2(x, y));
1410#endif
1411 }
1412
1413 /// Hyperbolic sine implementation.
1414 /// \param arg function argument

Callers

nothing calls this directly

Calls 2

exprClass · 0.70
atan2Function · 0.70

Tested by

no test coverage detected