Re: [eigen] Regression in product of row-major matrices using noalias

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




On Tue, Mar 9, 2010 at 1:42 PM, Gael Guennebaud <gael.guennebaud@xxxxxxxxx> wrote:

Hi,

sorry I cannot reproduce. I tested with gcc and icc, with/without SSE, and in 32 and 64 bits....

Are you sure you have the latest trunk? I recently fixed a bug for 32 bits with SSE.

Argh! you are right. I was testing on a stale copy a couple of days old.. I confirm that trunk solves this issue. Apologies for the noise and waste of time.

Adolfo


gael

2010/3/9 Adolfo Rodríguez Tsouroukdissian <adolfo.rodriguez@xxxxxxxxxxxxxxxx>

This example shows that something has recently broken in the implementation of lazy products with row-major matrices

typedef Eigen::Matrix<float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> Matrix;
Matrix A1(Matrix::Identity(2, 2));
Matrix A2(2, 1); A2 << 2, 3;
Matrix A3(2, 1);
 
A3.noalias() = A1 * A2; // Yields [2 2]' Wrong!
A3           = A1 * A2; // Yields [2 3]' OK!

This was working OK 1-2 weeks ago.

Adolfo


--
Adolfo Rodríguez Tsouroukdissian, Ph. D.

Robotics engineer
PAL ROBOTICS S.L
http://www.pal-robotics.com
Tel. +34.93.414.53.47
Fax.+34.93.209.11.09
AVISO DE CONFIDENCIALIDAD: Este mensaje y sus documentos adjuntos, pueden contener información privilegiada y/o confidencial que está dirigida exclusivamente a su destinatario. Si usted recibe este mensaje y no es el destinatario indicado, o el empleado encargado de su entrega a dicha persona, por favor, notifíquelo inmediatamente y remita el mensaje original a la dirección de correo electrónico indicada. Cualquier copia, uso o distribución no autorizados de esta comunicación queda estrictamente prohibida.

CONFIDENTIALITY NOTICE: This e-mail and the accompanying document(s) may contain confidential information which is privileged and intended only for the individual or entity to whom they are addressed.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of this e-mail and/or accompanying document(s) is strictly prohibited.  If you have received this e-mail in error, please immediately notify the sender at the above e-mail address.



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