Eigenvectors are overkill. For a given matrix P,
p P = p
p 1 = 1
is a linear problem (the 1 on the LHS is a vector, on the RHS a
scalar). The system is linearly dependent so you just drop one
equation from the top ones.
Thinking about this, I see no reason why this should not work
(continuous and differentiable a.a. for P). But since I have a
small sparse system, I ended up calculating the steady state in
Maxima, and copy-pasting that in to Stan, and it works fine.
(Since #680 is still unresolved, I ended up doing the same for a
matrix exponential.)
Best,
Tamas