This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
Bug 696 - Zero-sized blocks
Summary: Zero-sized blocks
Status: RESOLVED FIXED
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - general (show other bugs)
Version: 3.2
Hardware: All All
: Normal Unknown
Assignee: Christoph Hertzberg
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 3.3
  Show dependency treegraph
 
Reported: 2013-10-29 13:32 UTC by Christoph Hertzberg
Modified: 2019-12-04 12:46 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/
Comment 3 Nobody 2019-12-04 12:46:20 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/696.

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