New user self-registration is disabled due to spam. Please email eigen-core-team @ if you need an account.
Before reporting a bug, please make sure that your Eigen version is up-to-date!
Bug 696 - Zero-sized blocks
Summary: Zero-sized blocks
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - general (show other bugs)
Version: 3.2
Hardware: All All
: Normal Unknown
Assignee: 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.