[eigen] Partially fixed size matrices. |

[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]

*To*: eigen@xxxxxxxxxxxxxxxxxxx
*Subject*: [eigen] Partially fixed size matrices.
*From*: Tim Hutt <tdhutt@xxxxxxxxx>
*Date*: Thu, 11 Jun 2009 12:19:38 +0100
*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=1FaDTrKrxf3SshEbqyxlcZCdpVqpbLcewXwWhN2f6O0=; b=Y+bOaZY2raKQ6DdfdV1RnA2PUflNSO5kUfqpl4EzqvgruJE9dwXGqXBcHk6Nh3BwFn nEYYIp/Poj47ra1BkYFfVGJck8mxHkgAsc7wn0vzCnfABvq5FXSHAmJY9U+7TXAUjlmf HQtE0zU1CAd4ZBabQMc17E7v8QGAy2KBvqd8c=
*Domainkey-signature*: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=nuU8evcXage3O1qdubiuOIh0ymlQIUj7R+68jA/HdXLyXjr8f7Se/EOltmHRaME/r9 42leI/2Li/49s9wvmklSSQREjLqCMqJLfieIr6+55gGmS3cNTM1jXCgjSlfDsn5jzVTN Bx4pfm0ZFAU8wcSFJhPCh+3Lsd/uN4QTVM/4U=

Hi,
One of the examples given in the documentation says that you can do
things like this:
Eigen::Matrix<double, Dynamic, 1> foo(10); // A 10x1 matrix (ie a vector)
However, it makes no mention of if you can do this:
Eigen::Matrix<double, Dynamic, 2> bar(???); // An Nx2 matrix.
And none of the constructors seem appropriate for a matrix like this.
The single argument one is the only one that really makes sense and it
says it is only for vectors. Also looking in the source code there are
several lines with things like
if (compile_time_columns == 1 ...
which makes me suspect that it only works for vectors. Either way the
documentation really needs to be clarified.
While on the topic of documentation it would be awesome if you could
set up a way to append comments to the documentation pages. This can
be very useful, e.g. the MySQL documentation has (or had, they seem to
have changed it a bit) a lot of useful comments.
Tim