This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen

Bug 696

Summary: Zero-sized blocks
Product: Eigen Reporter: Christoph Hertzberg <chtz>
Component: Core - generalAssignee: Christoph Hertzberg <chtz>
Status: RESOLVED FIXED    
Severity: Unknown CC: gael.guennebaud, jacob.benoit.1
Priority: Normal    
Version: 3.2   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 558    

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.