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

Solve triu #1697

Merged
merged 9 commits into from
Dec 16, 2024
Merged

Solve triu #1697

merged 9 commits into from
Dec 16, 2024

Conversation

fieker
Copy link
Collaborator

@fieker fieker commented Dec 3, 2024

No description provided.

  - adaptive ratrec for dixon
  - dixon in "julia"
  - solve_left for odd dim
As a side this now has a chance or working

p = next_prime(400)
A = matrix(ZZ, p, p, [powermod(i-1, j-i, p) for j = 1:p for i=1:p]);
Hecke.example("Det.jl")
h = Det.DetS(A, do_hnf = true);
h = hnf(h);

this is MUCH faster in this example than even Magma, let alone our hnf.
The hnf_storjohann at least terminates reasonably - and not too shabby in
comparison with Magma
Copy link

codecov bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.23%. Comparing base (d92ea97) to head (56db702).
Report is 16 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1697      +/-   ##
==========================================
+ Coverage   76.01%   76.23%   +0.22%     
==========================================
  Files         362      362              
  Lines      114328   116893    +2565     
==========================================
+ Hits        86903    89115    +2212     
- Misses      27425    27778     +353     

see 79 files with indirect coverage changes

examples/Det.jl Outdated
Comment on lines 714 to 715
ccall((:fmpz_sub, Nemo.libflint), Cvoid, (Ptr{ZZRingElem}, Ptr{ZZRingElem}, Ptr{ZZRingElem}), R_ptr, R_ptr, U_ptr)
ccall((:fmpz_divexact, Nemo.libflint), Cvoid, (Ptr{ZZRingElem}, Ptr{ZZRingElem}, Ref{ZZRingElem}), R_ptr, R_ptr, m)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ccall((:fmpz_sub, Nemo.libflint), Cvoid, (Ptr{ZZRingElem}, Ptr{ZZRingElem}, Ptr{ZZRingElem}), R_ptr, R_ptr, U_ptr)
ccall((:fmpz_divexact, Nemo.libflint), Cvoid, (Ptr{ZZRingElem}, Ptr{ZZRingElem}, Ref{ZZRingElem}), R_ptr, R_ptr, m)
sub!(R_ptr, R_ptr, U_ptr)
divexact!(R_ptr, R_ptr, m)

@thofma thofma closed this Dec 15, 2024
@thofma thofma reopened this Dec 15, 2024
@thofma thofma merged commit d7c9bf2 into master Dec 16, 2024
33 checks passed
@thofma thofma deleted the SolveTriu branch December 16, 2024 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants