[eigen] segfault in adjoint unit test |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] segfault in adjoint unit test
- From: Hauke Heibel <hauke.heibel@xxxxxxxxxxxxxx>
- Date: Sat, 29 Aug 2009 15:31:42 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=Jkp6todPWMRHXveVMjqoDoTejAgFBrQ7mTRtzvXd5i0=; b=wW89EVyNYTr+LtGylZxWvwX3oLYm84g8RmHXaFLPFoaMnHyb4w9KVuIyUCXCanqzld GM7Qwqx6sRlMQonTpi/apmEGeMzkUTG7CHsOPGelUZYZ7z6Ibp5AtKNWlRCr8LDAZYgq hWx5k9zrmYiV26JI4W74uNBB5Qiwth5cNmajU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=pf6jqZZOcJKLJQGgu/EMagqerj4PYraMwJQICh5xT8aCfjUmqLhZB4aYI4Q4338IuA XCIe3QXGYxsQ1kGVjOeHLRBBgBpWllvYaekjpmkhin0QhdIP9EScX2Zq3YfuUFOnL26Z BHRoUCYgfCK2RFuP1XkTgpcP1YZPN+8+D6Ne8=
Hi,
I noticed a segfault in the adjoint unit test. It disappears when I change
VERIFY(ei_isApprox(v1.dot(square * v2), square.adjoint() * v1.dot(v2),
largerEps));
to
VERIFY(ei_isApprox(v1.dot(square * v2), (square.adjoint() *
v1).eval().dot(v2), largerEps));
and it also does not appear when inlining is disabled. I don't know
how to nail down the error. I guess it's some nestByValue related
issue...
Regards,
Hauke