overload the solveLinearDenseEqs function