You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The k-th integer power of an interval matrix M, M^k, is not well-defined. The reason is that interval-matrix multiplication is not associative. Furthermore, even for a fixed order, the multiplication induces an error due to the intervals. The only safe case is squaring (i.e., k = 2) (see #79).
Idea
Decompose the power k such that many squares are used. In other words: use as few non-square multiplications as possible.
Example
In the example below, we compute M^9.
A and B use the naive power operation, which are the worst options. (Interestingly, ^ does something slightly more intelligent. ?> ^ says equivalent to \exp(p\log(A))).
C, D, E use the fact that 9 = 2² + 2² + 1.
F, G, H use the fact that 9 = (2 + 1)³ + 2 + 1 (I only tried three permutations).
As can be seen, the order of the multiplications plays a role.
Presumably there is no optimal way to decompose the power, even when ignoring the order of the multiplications. A heuristics could be to decompose into the largest square numbers.
Sharing results
There is another issue: In the above algorithm/heuristics we may compute certain matrix powers several times. It might be better to have some symbolic representation of the decomposition (as we had in the example) and then compute each term only once. However, that sounds more complicated.
The text was updated successfully, but these errors were encountered:
Problem
The
k
-th integer power of an interval matrixM
,M^k
, is not well-defined. The reason is that interval-matrix multiplication is not associative. Furthermore, even for a fixed order, the multiplication induces an error due to the intervals. The only safe case is squaring (i.e.,k = 2
) (see #79).Idea
Decompose the power
k
such that many squares are used. In other words: use as few non-square multiplications as possible.Example
In the example below, we compute
M^9
.A
andB
use the naive power operation, which are the worst options. (Interestingly,^
does something slightly more intelligent.?> ^
says equivalent to\exp(p\log(A))
).C
,D
,E
use the fact that 9 = 2² + 2² + 1.F
,G
,H
use the fact that 9 = (2 + 1)³ + 2 + 1 (I only tried three permutations).Heuristics
Presumably there is no optimal way to decompose the power, even when ignoring the order of the multiplications. A heuristics could be to decompose into the largest square numbers.
Sharing results
There is another issue: In the above algorithm/heuristics we may compute certain matrix powers several times. It might be better to have some symbolic representation of the decomposition (as we had in the example) and then compute each term only once. However, that sounds more complicated.
The text was updated successfully, but these errors were encountered: