[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] leftCol(0)
- From: Carlos Becker <carlosbecker@xxxxxxxxx>
- Date: Sat, 26 Jun 2010 12:25:30 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=YZz0r9QWYpfcxIw7v7bqXmYlNtVcy/MzmScEkV6cnKM=; b=EUWA9pDFWXDqGgeqt7PLRxM433VADhDDWLZRqbGmcrX2fN4tAELofS0EOSg0gt8TLW 7pFsSffNgvVCRSFJrvA4RFzoyZTb8l2Simkda3w9eLLgdK/7clOOH8uf+iPtCdrtUZBy u3FVfAIvJ7dMQRPc2KRS0gpArQU4Sxi+trg+4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=WJMzsNPIE9RB/Z3rChX9aCunH5MWe6rkTKxgi7xRU5MIeWoPwV6TdAXIwKZJXMp85M Ux+Wfxraqd89HCCr9e5KN7d/CfqudzFrCTf2kkkxZv8ir85fDWlXs6NJIPmkskXRdHnz 42Tt15xJ7LR40wnKh5Waaa6FDhVY2ga+DQ6OM=
Hi everyone.
I was trying some code while writing the Block operations tutorial and found that the output of the following program does not make much sense:
#include <Eigen/Dense>
#include <iostream>
using namespace Eigen;
int main()
{
Matrix<float,3,3> m;
m << 1,2,3,
4,5,6,
7,8,9;
std::cout << m.leftCols(0) << std::endl;
return 0;
}
I wonder if this is a desired behaviour. I was expecting to get a compile-time error, or at least a run-time one.
Carlos