Re: [eigen] abs from vector.norm()

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Hi Dirk

On 07/25/2013 01:36 PM, Dirk Reske wrote:
> The compiler complains about a line
> 
> abs(acceleration.norm() - 1) //abs from stdlib
> 
> where 'acceleration' is an Eigen vector, that abs() has some invalid parameters.
> How to get it compiled?

abs(int) is for integer. You can use std::abs() in c++.

Or did the compiler complain about the operation inside the braces?

Armin



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/