[eigen] Shortcomings of asDiagonal()? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: Eigen development <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: [eigen] Shortcomings of asDiagonal()?
- From: Rhys Ulerich <rhys.ulerich@xxxxxxxxx>
- Date: Wed, 5 Jun 2013 12:54:12 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=MCMdUPmi/1LtiiyjKKYhLLZLW3/h3kxBWfWoMUkAeLM=; b=JFJcZHfcTV54eJf/7FnAvSIzxSX9Vp+ux+KZBsfXFwH08/3vzv3m2nojPI+ukfT19i 67a7tE0lyda3fv4QcAV2me9zpPzmhV51QhGv0jmrT+5dGfAOo5ydUgfRegPhGN/4gpIE YjJ2APHMe+y/GoZFI89KPPbeAIqqPnJN+rlSzhzUtGp0F34E6ck3gvxylBbllgOOButh qXu8TVK3a/yROssV+rMOJy1HhTqBynCX4qODtR4yzT0jvbHJR6Gkj/ystJcTxPH8zsnK oKa6W7OP2j7JdzNdkME+AuX8lwTGjpcnd/EKuhRJ6t1h6UGk0zJCnAmDybgLtJvB1PbB mv3g==
Hi all,
Should I expect the following to compile on 3.1.3?
#include <Eigen/Core>
int main()
{
using namespace Eigen;
// Works as expected
Matrix3d A1;
Matrix3d B1 = Matrix3d::Identity() * A1;
Matrix3d C1 = Matrix3d::Identity() + A1;
Matrix3d D1 = Matrix3d::Identity() - A1;
// Does not work but I expect that it should
Vector3d A2;
Matrix3d B2 = Matrix3d::Identity() * A2.asDiagonal();
Matrix3d C2 = Matrix3d::Identity() + A2.asDiagonal();
Matrix3d D2 = Matrix3d::Identity() - A2.asDiagonal();
return 0;
}
http://eigen.tuxfamily.org/bz/buglist.cgi?quicksearch=asDiagonal&list_id=2521
turns up nothing sounding similar but
http://eigen.tuxfamily.org/bz/show_bug.cgi?id=520 sounds similar in
spirit. Should I file something with 520 as a prerequisite?
Thanks,
Rhys