Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<typename Scalar> EIGEN_DEVICE_FUNC
- inline bool isApprox(const Scalar& x, const Scalar& y,
- typename NumTraits<Scalar>::Real precision =
- NumTraits<Scalar>::dummy_precision())
- template< .... >
- void evalSolverSugarFunction(....)
- {
- ....
- const Scalar psPrec = sqrt( test_precision<Scalar>() );
- ....
- if (internal::isApprox(
- calc_realRoots[i], real_roots[j] ), psPrec)
- {
- found = true;
- }
- ....
- }
- This suspicious code was found in Eigen project by PVS-Studio static code analyzer.
- Warning message is:
- V639 Consider inspecting the expression for 'isApprox' function call. It is possible that one of the closing ')' brackets was positioned incorrectly. polynomialsolver.cpp 123
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement