The fit() method might crash if points is empty (Eigen::MatrixXd with 0 rows is fine, but solving would fail). This is not great.
The fit() method might crash if points is empty (Eigen::MatrixXd with 0 rows is fine, but solving would fail).
This is not great.