Re: [eigen] abs from vector.norm() |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] abs from vector.norm()
- From: Armin Burchardt <burchardt@xxxxxxxxxxxxx>
- Date: Thu, 25 Jul 2013 13:41:26 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=uni-bremen.de; s=dkim; t=1374752486; bh=FvpfASeKvdw7/X+Z1vgVCaP4XHDqU/fVP4tn234XnDQ=; h=Date:From:To:References:In-Reply-To; b=LblO4MgIlk3uKX0LguOJNpYCFLdRm5cNLMBvF451D3jHPztNf8+gtYiZN1iLKCSx9 k2d3So/uo94l8UTlHTijzgTvWhU3ABXK2k6VYwNKGhCc+UdCaoFLyIWShJcqAk8Ppy lXymB5O6BpbQQQI7ctQ6b0Qw75Si0EUNY0ZUj9YI=
- Organization: Universität Bremen
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