check linsolve