I have a matrix that will be multiplied with itself by an extremely large amount of times under $Z/pZ$. The matrix itself contains small numbers, so MatrixPower[Mod[mat, p], pow, vec]
won't work; and taking mod$\bmod$ after calculation is infeasible since the result is extremely large. Can I have similar functionality like some other function's Modulus ->p> p
with MatrixPower
?
J. M.'s missing motivation
- 125.5k
- 11
- 407
- 581