Re: [eigen] Clang issue on MacOS when the set variable is used in the given data |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [eigen] Clang issue on MacOS when the set variable is used in the given data
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Fri, 19 Apr 2013 14:01:52 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=2h6gxUxA3lwwsYnjo9dnlDg6+IIPKpp7HoodK7HFTVc=; b=BxQwIEfh/dURGfn4LKO6kbxL/gKenegIwgdmWxF6wJ4gzhBHEi7HxDdlwZ4aTQeywF FNQcBWycl+haDyGSZTGVLhTGBJzq4sJox6KQJphdG8l4Wu/2res2YYADiRJEgEg7j0WX e4zhXOSOt7JEGzPRui8VrWBi4TN8boziiIxqNyjAcDSXu6VFfNPpw3HjVBmqqZK5WBvz KlnDp9S0FzDMCGUPKKGE/stS8yy1aTWE4DuHfPXKipTJr5LWQP/oEW+do4ikB+85MVt9 7yWh6iy/I5a275e3415wyKiZc68Ho1EP7JYSX0DSKBqTJsZiBI1eqNUH/m30LuS+b8Qy z7Zw==
On Fri, Apr 19, 2013 at 1:48 PM, Arnaud BARRE <arnaud.barre@xxxxxxxxx> wrote:
> I know I can use the methods "tail", or "segment" instead of "block", but
> the difference is only in the simplicity of writting the code. There is no
> optimisation in these two methods compared to "block", is there?
Is this case it amounts to the same because you multiply it to an
object that has compile time sizes, but it general it's better to
specify the sizes at compile time when you can.
Your code will look much simpler by using an Isometry3d and a Rotation2D:
- rot = Rotation2Dd(theta);
- Isometry3d::inverse() does exactly what you wrote;
- Isometry3d are compatible with 3D vectors;
- Isometry3d has .linear() and .translation() members for easy
read-write access;
gael