[eigen] compilation failed for not aligned tiny matrix |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] compilation failed for not aligned tiny matrix
- From: WANG Xuewen <xuewen.wang@xxxxxxxxx>
- Date: Tue, 06 Oct 2009 14:28:09 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=mhweaYTaMlZRkzTFEtA7Qc644iwq9EMuZPwwAwDHHsg=; b=CxTRKBXtAlfgdFBlpphoMTWXtG/cj+FxZ7S0kxU10KlICEb9/2fnj8QJ6jwdt3tiP1 dX8VeZDsjbnV6nJnvYyX1/0K12I5fLpHWmWSNpwFNFhq1Q0w/hg5pHH9ApVLyq6gb33L 7m2WMpZ/DD/qoSD8r5qiSk68eVpF42N1dB2fQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=nvfPO4ZcmW9ts+0yiXgvwa3nJdwXFLNuuTXESNGu0Kl4qQQJM/7RFqUeftZX1DxOf0 fIAI2EtrkDWvs+vbfhUkLMuSIis0PzJ0+Mcu3URY5/hW2wSFFFrRu4PiOHiLuyzekPGA UDU9qJZwae8DX7zFdgZxY28+soFaWg9ac2TZU=
Hi,
I'm using the devel branch, and got the a compilation error with the
following code:
#include <eigen2/Eigen/Core>
#include <eigen2/Eigen/Array>
#include <eigen2/Eigen/LU>
typedef Eigen::Matrix<double, 4, 4,
Eigen::RowMajor | Eigen::DontAlign,
4, 4>
TinyRMatrix;
void TestInverseCompilation()
{
TinyRMatrix m;
m.setIdentity();
TinyRMatrix inverse;
m.computeInverse(&inverse);
}
the error message is
test.cpp:16: error: no matching function for call to
/usr/include/eigen2/Eigen/src/LU/Inverse.h:259: note: candidates are:
void Eigen::MatrixBase<Derived>::computeInverse(typename Eig
en::ei_plain_matrix_type<Derived>::type*) const [with Derived =
Eigen::Matrix<double, 4, 4, 3, 4, 4>]
If I change DontAlign to Aligned, it compiles fine. But I'm told that it
doesn't make much sense to align/vectorize tiny matrix...
thanks,
Xuewen