We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d13ea2a commit 2b27939Copy full SHA for 2b27939
1 file changed
bindings/Modules/src/SofaPython3/SofaLinearSystem/Binding_LinearSystem.cpp
@@ -87,6 +87,10 @@ void bindLinearSystems(py::module &m)
87
{
88
if (CRS* matrix = self.getSystemMatrix())
89
90
+ if (matrix->colsValue.empty()) //null matrix: contains no entries
91
+ {
92
+ return EigenSparseMatrix<Real>{matrix->rows(), matrix->cols()};
93
+ }
94
return toEigen(*matrix);
95
}
96
return {};
0 commit comments