More flexible generalized inverse routines