(D,B)=balance(A)| Inputs | |
A |
A square matrix. |
| Outputs | |
D |
A diagonal matrix of the same size as A . |
B |
A matrix of the same size as A . |
A , balance(A) returns a diagonal matrix D
such that
D\B*D=AD such that B is better
conditioned than A for eigenvalue computations.