New user self-registration is currently disabled. Please email eigen-core-team @ lists.tuxfamily.org if you need an account.
Bug 696 - Zero-sized blocks
Zero-sized blocks
Status: RESOLVED FIXED
Product: Eigen
Classification: Unclassified
Component: Core - general
3.2
All All
: Normal Unknown
Assigned To: Christoph Hertzberg
:
Depends on:
Blocks: 3.3
  Show dependency treegraph
 
Reported: 2013-10-29 13:32 UTC by Christoph Hertzberg
Modified: 2016-01-29 11:45 UTC (History)
2 users (show)



Attachments

Description Christoph Hertzberg 2013-10-29 13:32:58 UTC
Due to a runtime assert, it is currently not possible to extract fixed-sized blocks where one dimension is zero. (A use-case for that is to reduce trivial branches in user code).
The local fix is trivial, but for proper unit-tests some other parts require adaption as well.
Comment 1 Gael Guennebaud 2016-01-29 11:41:02 UTC
hm, actually a workaround is:

MatrixXd m;
m.block<0,N>(i,j, 0,N);
Comment 2 Gael Guennebaud 2016-01-29 11:45:20 UTC
https://bitbucket.org/eigen/eigen/commits/c35c53729a53/

Note You need to log in before you can comment on or make changes to this bug.