-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Time scaling is currently giving great results, showing a gain of about 40% in computation time, but the way in which we are tuning the scaling parameter T is not general. It would be nice to design an algorithm to find T automatically and that can work in any case.
BALANCING
Moreover, time scaling corresponds to a special case of balancing, that consists in using a similarity transformation given by a diagonal matrix D, so that the norm of B = D^-1 * A * D is much smaller than the norm of A. Then rather than computing directly e^A, we compute it as:
e^A = D * e^B * D^-1
Time scaling corresponds to setting diagonal elements of D to 1 for the first half and to T for the second half. Clearly this is suboptimal because we are using only one degree of freedom, whereas D has many more parameters.
The problem of balancing for the matrix exponential has been discussed in this mathworks post, coming to the conclusion that he didn't know whether to recommend balancing in general, and that many problems could be solved just by avoiding overscaling using a new version of the scaling-and-squaring algorithm from 2009.
BALANCING FOR THE MATRIX EXPONENTIAL
The balancing algorithm of LAPACK that was used for the matrix exponential preconditioning, was actually originally thought for eigenvalue problems. This algorithm minimizes the Frobenious norm of B, which is not really what we care about when computing matrix exponentials. It'd be better to design a new balancing algorithm that minimizes the 1-norm of B, which is what affects the computation of e^B.