[eigen] triangular * scalar product? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] triangular * scalar product?
- From: Jim Bosch <talljimbo@xxxxxxxxx>
- Date: Fri, 28 Oct 2011 12:21:51 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=eH8zrahX1gExXmo2+z4mfTCXXuIV0B88m9FQRNHApdg=; b=bdCbJYnlD2U/scI+WjdLkEww43PAYZzyxDH8+1p9BCRP/H4xtj1NGX1rDUKFWpHq68 JTE2EgH7npDVsegArgx9uANs90LNG1RKp9uhkWCnpB93R4fTG1L1R0t/p93z6bi0KVIn sr841TtyuSTC9jlmanYr7xWk/8iMdwAq09nU0=
It looks like triangularView doesn't support multiplication by scalars
(except in-place). Is this just an oversight, or is there some reason
implementation would be difficult?
To be precise, the following does not compile:
#include <Eigen/Core>
int main() {
Eigen::MatrixXd m1(5, 5);
m1.setRandom();
Eigen::MatrixXd m2(5, 5);
m2 = m1.triangularView<Eigen::Upper>() * 3.0;
}
Thanks!
Jim Bosch