Re: [eigen] Geometry module - Quaternion fitting alternative |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Geometry module - Quaternion fitting alternative
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Tue, 26 May 2009 15:31:03 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=gnEr2QCXuhw4cZ/eoG39EKODxukVEkc9OXvZYkxipmg=; b=tmlchXRX3rWbalc1ph2jz/phUVF23BiYSKkIH6ky5etEMdINxTvJbZkCnO0RjQ3lP3 K7wmCrHOG8hX9uZl32vce51fXUMasxxYpzKryLUT5MRsnxtTvGU6feW3dG44daGzr94Y JDgCiBL2x10varEzgjTtUQ+8616c7VSG3j/lM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=YaZnuLQGiJObOxBUD+hFboFEEAVIaLwXFBAkJG/2t7+DJsOOFqR6EBZ9qgURuTaCGJ /nrPYf8rAC4f/rILnFFl4bfiM4ZUoGje17z0jedyKPrwHURgIeZ4rEQhpfcKc5f3CMST VHlHXpPNKhvIq0T/HsDhOrwFJwktn176RM8jg=
2009/5/26 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
> This means that a prerequisite to vectorize that is that your matrices
> src and dst be RowMajor.
Oh but I overlooked the fact that dst and src are the arguments passed
to the function. So we don't control their storage order, the user
does, and the default is col-major. We could say that you change the
implementation so that now the _rows_ are the points, so vectorization
can be done in the col-major case... but that would mean interleaved
storage, so the construction of the matrices in the first place would
be less efficient (less memory locality) so it's probably not worth
it.
So I'd say don't worry about vectorization here....
Benoit