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