Returns the markovchain object whose transition matrix is
\(P^{\code{order}}\): from any state, its one-step transition
probabilities are the original chain's order-step transition
probabilities.
Value
A new markovchain object on the same states as
object, with transition matrix \(P^{\code{order}}\).
Details
This is a thin, discoverability-only wrapper around
object ^ order (see ^,markovchain,numeric-method),
provided under this name because PyDTMC's equivalent method is
called to_nth_order(). It exists so that the operation is easy to
find by that name; it introduces no new computation; the underlying
^ method is already \(O(n^3\log(\code{order}))\) via repeated
squaring (expm::%^%), not a naive order-fold
product, so there is nothing to improve on algorithmically here.