Re: [eigen] Assertion failure doing matA.col(??).noalias() = matB.row(??) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Assertion failure doing matA.col(??).noalias() = matB.row(??)
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Thu, 2 Sep 2010 19:16:49 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=awokPJvd4lS/PvbzZShCwjdc96Xyi4dzO50OLwrg1fo=; b=mrJhUP0381QNRDVlLSoIyUNX78PQLb3QZiVEskIz2M06wQSvT/tMaoRYP9LzROIBf2 pyvNEXgv0XNxwW1GAD0m9gZpiT/hrHgueWuanOveNMb8b2SJyoFXlxtfCMaKC+dcL0Rb kJ3BIic7bi3kStadfLJujXOWBYnicPP02wADk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=vBtuqFZYLWhG8IuY97Avh0x2vptOYm1/OgZoQoQ6HXZ5M2xU5XK+iwFMWpp0OGruJQ uVl9dkplkoyAbsodYeJ7I0W0hGEhdRW6iaCBsmAgvPbZLf5/9FFRdqSfi5K3RPHUetgS eoC+QZdfrQgfA4cFdX6muWpAbDyjUkBSLs81I=
done (with the respective unit tests ;) )
gael
On Thu, Sep 2, 2010 at 6:53 PM, Gael Guennebaud
<gael.guennebaud@xxxxxxxxx> wrote:
> ok thank you for spotting it. fix and unit test within a few minutes....
>
>
> gael
>
> On Thu, Sep 2, 2010 at 6:39 PM, Eamon Nerbonne <eamon.nerbonne@xxxxxxxxx> wrote:
>> 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
>>
>