isSingularMatrix method
Checks if the matrix is a singular matrix.
Example:
Matrix C = Matrix([
[1, 2],
[2, 4]
]);
print(C.isSingularMatrix()); // Output: true
Implementation
bool isSingularMatrix() {
return determinant() == Complex.zero();
}