[kernel] display a message for an empty matrix
@@ -680,9 +680,15 @@ void SimpleMatrix::display() const
std::cout.setf(std::ios::scientific);
std::cout.precision(6);
+ if (size(0) == 0 || size(1) ==0)
+ {
+ std::cout << "SimpleMatrix::display(): empty matrix" << std::endl;
+ }
if (_num == 1)
+ {
Siconos::algebra::print_m(*mat.Dense);
//std::cout << *mat.Dense << std::endl;
+ }
else if (_num == 2)
std::cout << *mat.Triang << std::endl;
else if (_num == 3)
