Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve InverseMatMod with integer modulus #2426

Merged

Commits on Apr 30, 2018

  1. Improve InverseMatMod with integer modulus

    Before:
    
        gap> m2:=RandomUnimodularMat(100);;
        gap> for i in [1..100] do x:=InverseMatMod(m2,2); od; time;
        277
        gap> for i in [1..100] do x:=InverseMatMod(m2,251); od; time;
        1564
        gap> for i in [1..100] do x:=InverseMatMod(m2,65537); od; time;
        Error, reached the pre-set memory limit
    
    After:
    
        gap> m2:=RandomUnimodularMat(100);;
        gap> for i in [1..100] do x:=InverseMatMod(m2,2); od; time;
        273
        gap> for i in [1..100] do x:=InverseMatMod(m2,251); od; time;
        1249
        gap> for i in [1..100] do x:=InverseMatMod(m2,65537); od; time;
        1226
    fingolfin committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    385b0c9 View commit details
    Browse the repository at this point in the history