Modular Matrix Inverse in Zn
Residue Matrices
Cryptography uses residue matrices: matrices in all elements are in Zn. All operations
on residue matrices are performed the same as for the integer matrices except that
the operations are done in modular arithmetic. One interesting result is that a residue
matrix has a multiplicative inverse if the determinant of the matrix has a multiplicative
inverse in Zn. In other words, a residue matrix has a multiplicative inverse if gcd
(det(A), n) = 1.
Cite As
Ali Broumandnia (2025). Modular Matrix Inverse in Zn (https://se.mathworks.com/matlabcentral/fileexchange/64813-modular-matrix-inverse-in-zn), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Linear Algebra >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
ModularMatrixInverse/
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Update gcd function |
