Currently replaceBond, factorize, svd and eigen don't return the truncation error which we would like to track in many cases. It is also necessary in some cases to have the actual singular values from replaceBond and factorize.
It would be simple to just propagate this through all these functions, but might make the code a little more cumbersome in cases when one doesn't need this information (although not much more).
Another option is to have a factorization object returned from factorize, svd and eigen functions which will contain all the information.
A third option is to return this information from factorize, svd and eigen only when it is asked for by the caller with a keyword argument.
Any thoughts?