correctly compute the error from LMV (master)

Conflicts:

	prog/lmv.h
	prog/mdiis.h
	prog/rism0.c