hasSolution method

bool hasSolution()

Computes whether the system can be solved or not.

A system can be solved (meaning that it has exactly ONE solution) if the determinant it not zero.

Implementation

bool hasSolution() => matrix.determinant() != 0;