mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 20:26:03 +08:00
fix comma initializer when inserting empty matrices
(transplanted from a67eea05c167e69f5e82410941d8645764e45038 )
This commit is contained in:
parent
2f0307cdb5
commit
7b13a7fd23
@ -65,6 +65,8 @@ struct CommaInitializer
|
||||
template<typename OtherDerived>
|
||||
CommaInitializer& operator,(const DenseBase<OtherDerived>& other)
|
||||
{
|
||||
if(other.cols()==0 || other.rows()==0)
|
||||
return *this;
|
||||
if (m_col==m_xpr.cols())
|
||||
{
|
||||
m_row+=m_currentBlockRows;
|
||||
|
Loading…
x
Reference in New Issue
Block a user