On Fri, Oct 22, 2010 at 2:56 AM, grg
<address@hidden> wrote:
However, I've just realized that yesterday I missed an important thing.
In my problem A is a *matrix*, not a scalar as in the examples.
That was indeed my initial question. How to compute efficiently (i.e.,
without a loop) A.^t, when size(A)=[s s], and size(t)=[1 T].
Thanks again for your previous input.
Giorgio
Generally speaking, you can vectorize something from a for loop if there is a closed-form version of the iterative process. In this case, the only closed-form solution (as far as I know) to the iterative process: