Re: [eigen] abs from vector.norm() |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
On 25.07.2013 13:36, Dirk Reske wrote:
abs(acceleration.norm() - 1) //abs from stdlib
That compiles fine for me, so we need some more information. E.g., did
you forget an include, or do you have contradicting definitions of abs?
Other than that as Armin suggested, write std::abs so that the correct
abs function is used. (A common hard-to-find bug in C is accidentally
using abs instead of fabs ...).
Christoph
--
----------------------------------------------
Dipl.-Inf., Dipl.-Math. Christoph Hertzberg
Cartesium 0.049
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen
Tel: +49 (421) 218-64252
----------------------------------------------