[eigen] return type of inner product |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] return type of inner product
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Thu, 1 Oct 2009 16:01:11 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=Uht4YbTvfurZhg3tECQ5U95NzkckEsPqHYg2C44+Dzw=; b=qdYkBMQWJBLm37PNwFds2L0KhEWxReQ6LksJacs+5x6pFiqMca11dBpqceW9Eai3t5 ckpMhyyhi4eCggjP4zqPmDNZA8Qr66BKOSrMmcBOpqESubYEY8EGaoV7NdkKGf5CEOXY SnRcBYrV2lOT34Uxejy818Gv/tK/aO0pxjbPM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=MKsuQPfbowf7GDJvle3vNcPLX12YU6Xx8MqzQuonW2rf31+kyPnxNAtZMIWvg6Fv7O sR17n7zApcgUvFwjo0gNIK2Iag9ebld4+ZTfO/H+JqOeBWek3mynj0c34CoN/rW9zDN8 s5MDzyYKeYLSb0jbR9ItA7ivQfOhWm4cDxyB4=
hi,
I still have a FIXME in the Product.h file that I'd like to discuss:
// FIXME : maybe the "inner product" could return a Scalar
// instead of a 1x1 matrix ??
// Pro: more natural for the user
// Cons: this could be a problem if in a meta unrolled algorithm a matrix-matrix
// product ends up to a row-vector times col-vector product...
any opinion ?
note that here "inner product" denotes any row-vector times col-vector
products, and not the .dot() function which of course returns a
scalar.
gael.