Method for tridiagonal eigenvalue decomposition, used to compute nodes and weights for Gaussian rules. On return, it destroys the inputs diag and offdiag and writes the outputs to nodes and weights. The parameter mu0 should be set to where is the measure in the function inner product. The parameter version specifies which algorithm should be called.