more efficient retval passing of LinearEquationSolver