New user self-registration is currently disabled. Please email eigen-core-team @ if you need an account.
Bug 696 - Zero-sized blocks
Zero-sized blocks
Product: Eigen
Classification: Unclassified
Component: Core - general
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)


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

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