简体   繁体   中英

Finding matrix modulo n inverse in octave

I have to find the modulo 29 inverse of a 30x30 matrix. I've tried using the det^-1 * adjoint, but I can't seem to find the det^-1 because the det is something like -7.4269e+16. Any ideas?

As in the computation of modular powers, it is advisable and even essential for an efficient implementation to reduce the intermediate results modulo 29.

Thus if there is no dedicated algorithm for this function or modular integer number type usable in the standard function calls in matlab, you will have to implement a variant of the Gauß-algorithm on your own.


Using google one of course finds solutions for everything: modsolve.m

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM