[eigen] Assertion failure doing matA.col(??).noalias() = matB.row(??)
[
Thread Index
|
Date Index
|
More lists.tuxfamily.org/eigen Archives
]
To
:
eigen@xxxxxxxxxxxxxxxxxxx
Subject
: [eigen] Assertion failure doing matA.col(??).noalias() = matB.row(??)
From
: Eamon Nerbonne <
eamon.nerbonne@xxxxxxxxx
>
Date
: Thu, 2 Sep 2010 18:39:34 +0200
Dkim-signature
: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=MzAZZ2NYpKT9pw2RkCo59eL8VLN1KDQoHSD2I7Z4/8s=; b=GIlHQUkLEQXl16fPz4UFnpzYWzku83qq+GBFySQIbgWzP6TbvSEAfM+x39VqWjAo/d 0zzs9v4Ro1Bdweg32Bl5P0bge64R12nFuA37SRx4/7BsEL/A/P92hXJR1mTItCBdXg4Z GGWYnUhpwqFvHIuSmNNoa32Oga02qCZPk85bc=
Domainkey-signature
: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=isyMWJIQVzf1+FXH2AfdIUN2atqttK9d+QdpJ6Bs1Grs069yHf+Ma8Jn2uzOhVvkzz oHDxsvKp8A7yTBf7idnXLEs1QKLsJ1rbJ36FsR5yXovLV2y+utrcvz3VgevFrkWWhpIS S5j3VZLAJLilK3nky93sdCi8Vc3gqOBqlDtMg=
The following code fails with an assertion (on g++ & MSC)
MatrixXd matA, matB;
matA = MatrixXd::Random(12,15);
matB.resize(matA.cols(),matA.rows());
for(ptrdiff_t i=0;i<matA.rows();++i)
matB.col(i).noalias() = matA.row(i); //<-- fails here!
assert(matB.isApprox(matA.transpose());
Without the .noalias, it succeeds. Is this by design? It's confusing, at least...
--
eamon@xxxxxxxxxxxx
- Tel#:+31-6-15142163
Follow-Ups
:
Re: [eigen] Assertion failure doing matA.col(??).noalias() = matB.row(??)
From:
Gael Guennebaud
Messages sorted by:
[
date
|
thread
]
Prev by Date:
Re: [eigen] eigen3 compile error on jaunty (gcc 4.3.3)
Next by Date:
Re: [eigen] eigen3 compile error on jaunty (gcc 4.3.3)
Previous by thread:
Re: [eigen] Re: SGEMM benchmark result against ATLAS
Next by thread:
Re: [eigen] Assertion failure doing matA.col(??).noalias() = matB.row(??)
Mail converted by
MHonArc
2.6.19+
http://listengine.tuxfamily.org/