I need to approximate the following in $O(d)$ time for $d\times d$ diagonal $A$ and rank-1 $B$ $$u^T \exp(-A+B) v$$
Here $u,v$ are vectors in $\mathbb{R^+}^d$, $A,B$ are positive semi-definite and $B$ is relatively small
The following approximations take $O(d)$ to compute and get me within factor of 2 of true value on sample data
- set $B$ to 0
- truncate Zassenhaus formula at first term
However, adding more terms from the Zassenhaus expansion seems to make the approximation worse, any tips?