mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-05 19:46:07 +08:00
Fix warning and remove checking of empty matrices (not supported by 3.2)
This commit is contained in:
parent
2a3680da3d
commit
80e72a2653
@ -89,7 +89,7 @@ struct CommaInitializer
|
||||
eigen_assert(m_row+m_currentBlockRows<=m_xpr.rows()
|
||||
&& "Too many rows passed to comma initializer (operator<<)");
|
||||
}
|
||||
eigen_assert(m_col<m_xpr.cols() || (m_xpr.cols()==0 && m_col==0)
|
||||
eigen_assert((m_col<m_xpr.cols() || (m_xpr.cols()==0 && m_col==0))
|
||||
&& "Too many coefficients passed to comma initializer (operator<<)");
|
||||
eigen_assert(m_currentBlockRows==other.rows());
|
||||
if (OtherDerived::SizeAtCompileTime != Dynamic)
|
||||
|
@ -44,26 +44,4 @@ void test_commainitializer()
|
||||
vec[2].transpose();
|
||||
VERIFY_IS_APPROX(m3, ref);
|
||||
|
||||
|
||||
// Check with empty matrices (bug #1242)
|
||||
{
|
||||
int const M = 0;
|
||||
int const N1 = 2;
|
||||
int const N2 = 1;
|
||||
|
||||
{
|
||||
Matrix<double, M, N1> A1;
|
||||
Matrix<double, M, N2> A2;
|
||||
Matrix<double, M, N1 + N2> B;
|
||||
B << A1, A2;
|
||||
}
|
||||
{
|
||||
Matrix<double, N1, M> A1;
|
||||
Matrix<double, N2, M> A2;
|
||||
Matrix<double, N1 + N2, M> B;
|
||||
B << A1,
|
||||
A2;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user