Re: [eigen] API change proposal |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] API change proposal
- From: Andrea Arteaga <yo.eres@xxxxxxxxx>
- Date: Thu, 23 Jul 2009 00:30:12 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=KoGZq7vvibqyO012S7CwNvLdAT4vOm+1b/OI9nwVxGw=; b=O1i6cT0bY4ardyDSLvXhk9Xzu1MYlIqa1nowV89QaMZy8Zkw/O10ryQ5Vns82DuLgu KGKxr1PytaJ+XXLzZeWdklZk+Cv3M8t7QbDrRJ9g7HDJganzlQSycCfGL8pF7i0bwGc7 yQATzKLHtScoPV24sDDIzYJDbqqTy0n/4ILPo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=OVF1FCsgNaaKaL4PCKIHVWuJOxk4R3Oy1p6KF4yGXYvVFk9Qz8mFWlsvi0E5tkW33I 4g5OMLEHUZcCwqnnE8FYSQu73KFRraQ6HS+dUq7cVOfnNU/e0HHnkBSX+SWdnSi9D+bz iku7oOFhgaTq0CHxFzzZl36MnenOBITAzbFMs=
In principle, I'm agree with Markus, since pointers in C++ can be considered as low-level concept
and Eigen allows a high-level manipulation of objects; that pointers could be "out of place".
But: when a method of LU (or QR) takes a reference as argument, is it clear to users that the
function will modify that argument? Pointers are the classical system to output something, which
cannot be the return value. In spite of the practicality of references, pointers make clear that the
argument is a "output argument", not an input one.
However, Eigen could also provide both behaviours by overloading the method.
Andrea Arteaga