The present invention provides a method and system for computing a matrix
power series according to one embodiment of the present invention. Memory
structures for storing a partial sum, current and previous series terms
are allocated. First and second pointers are assigned to refer to a
memory location storing a current series term and a previous series term
respectively. During each phase of a process to compute a current partial
sum, the pointers are exchanged.