[eigen] question on Product.h |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: [eigen] question on Product.h
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Thu, 18 Mar 2010 22:30:42 -0400
- 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=+/6bXsra56z/8znHmYHz9ADTjmkOEozez8BBq4pW39Y=; b=ob4u8TvVd1ivRi+613NYPonYTpnqgUjC988cZE6ODDYctV/npzEkbYYd/4nEgoJUP3 gkG50Kvx5fC2G/5X3LDdp8C6aowrHEWsoaYjRqfHc8rb23/nzvwPpCQ63ruR/OdRhKXs klP6hLsUi4xMT+O8Q24M2KLMgYc44DZAbKDbg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=xT+RJawzEoDVs0FRnr9vXwlvdi6FRkE1i+6al3ExjitGe+i1E81F1Tq1qBfvt3PjcN SCBxtKJo3aF6WF1EDBDVTglsg46laevWTyo4laVTnGdOrmWykLibx2vXs2bPf3Tx/4Y+ 5/li1j959ooJ7kJwbzAPoD+R3AocMT5IZsXKA=
Hi,
this is a question for our favorite 30-year-old:
in Product.h, in ei_gemv_selector, you have lines like:
Map<Matrix<Scalar,Dest::RowsAtCompileTime,1> >(actualDest, dest.size()) = dest;
my question is, why this type Matrix<Scalar,Dest::RowsAtCompileTime,1>?
- couldn't we propagate the max-sizes? Or do you mean, this is only
ever called for big/dynamic sizes?
- wouldn't it be simpler to just pass e.g. typename Dest::PlainObject ?
Benoit