mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug #1189: fix pow/atan2 compilation for AutoDiffScalar
This commit is contained in:
@@ -30,6 +30,10 @@ template<typename Scalar> void check_atan2()
|
||||
|
||||
VERIFY_IS_APPROX(res.value(), x.value());
|
||||
VERIFY_IS_APPROX(res.derivatives(), x.derivatives());
|
||||
|
||||
res = atan2(r*s+0, r*c+0);
|
||||
VERIFY_IS_APPROX(res.value(), x.value());
|
||||
VERIFY_IS_APPROX(res.derivatives(), x.derivatives());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user