[eigen] inconsistent cwise() support
[
Thread Index
|
Date Index
|
More lists.tuxfamily.org/eigen Archives
]
To
: Eigen <
eigen@xxxxxxxxxxxxxxxxxxx
>
Subject
: [eigen] inconsistent cwise() support
From
: Hauke Heibel <
hauke.heibel@xxxxxxxxxxxxxx
>
Date
: Mon, 16 Nov 2009 18:39:30 +0100
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=XfBOLH/gYjHhscZwTCqE9jVYwmZvsrrYTFwSIfPdrZo=; b=GOvLFOPq7L0955wARJndztOBzHeu3xQV0bCDGYBiYlcDPzZXzb/nb7mG3IAOJ1PGz0 nBlHbcfk7IhxEPYQLDWucCdfulQbonUyoPoFDnF7bcF5Vk6s2jE0OtuZYc3vqvVWLpTf fotDxBu3AdDXVTqeeb7lXD3jBmmd/XtLgl0Yc=
Domainkey-signature
: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Zpdhhk/HjZ/qPcaudn5jytm114t2BlxlsPggEHa8Q6eeEXXHBltXRmqWCS3Zc/uNnS 73OlF5NPpgfwio3ff7LV7ZwN7SPIB1lmYfPkfIGLEcOOGHyQl+lx8yiF96LuCTgw6B7x cE2q28Cy4PBekInHcpw0/VK2Th+DGactyEN2E=
Hi,
I've just stumbled over a strange issue. I tried to normalize a matrix such that all its entries are between 0 and 1 and tried this.
a -= a.minCoeff();
a /= a.maxCoeff();
It did not compile.... then, I tried this
a.cwise() -= a.minCoeff();
a.cwise() /= a.maxCoeff();
again, it did not work. :)
What did work and this is rather confusing is the following:
a.cwise() -= a.minCoeff();
a /= a.maxCoeff();
I think this is a bit unintuitive. Do you think we can change this in the future?
Regards,
Hauke
Follow-Ups
:
Re: [eigen] inconsistent cwise() support
From:
Benoit Jacob
Messages sorted by:
[
date
|
thread
]
Prev by Date:
Re: [eigen] General design issue
Next by Date:
Re: [eigen] inconsistent cwise() support
Previous by thread:
Re: [eigen] Re: 2.0.10 on November 25?
Next by thread:
Re: [eigen] inconsistent cwise() support
Mail converted by
MHonArc
2.6.19+
http://listengine.tuxfamily.org/