Use cv::solve() instead of open-coding with matrix expressions.