Hecke.jl
Hecke.jl copied to clipboard
IndexCalculus
IndexCalculus for DLP over safeprime fields. Wiedemann version for more general fields in progress
Nice, thanks.
It would be great if those @label/@goto
would be rewritten. It seems they can just be replaced by simple while
loops or if
clauses.
On Fri, May 20, 2022 at 04:36:22AM -0700, Berenike Dieterle wrote:
@BD-00 commented on this pull request.
- add_scaled_row!(A[i], A[j], c)
- A.nnz = A.nnz + length(A[j])
- return A +end
@.*** Markdown.doc"""
- add_scaled_col!(A::SMat{T}, i::Int, j::Int, c::T) -> SMat{T}
+As add_scaled_row!(A::SMat{T}, i::Int, j::Int, c::T) but with columns of $A$. +""" +function add_scaled_col!(A::SMat{T}, i::Int, j::Int, c::T) where T
- @assert c != 0
- @assert 1 <= i <= ncols(A) && 1 <= j <= ncols(A)
- for r in A.rows
- if i in r.pos
i_i = findfirst(isequal(i), r.pos) #changed
Since the assignment to i_i happens within the if-part, this shouldn't be called if i not in r.pos, right? Correct, sorry In this case we just jump to the next row
-- Reply to this email directly or view it on GitHub: https://github.com/thofma/Hecke.jl/pull/701#discussion_r878052111 You are receiving this because you commented.
Message ID: @.***>
Codecov Report
Merging #701 (94240b2) into master (e7143ef) will increase coverage by
1.83%
. The diff coverage is82.67%
.
:exclamation: Current head 94240b2 differs from pull request most recent head 0fb4fbf. Consider uploading reports for the commit 0fb4fbf to get more accurate results
@@ Coverage Diff @@
## master #701 +/- ##
==========================================
+ Coverage 70.61% 72.44% +1.83%
==========================================
Files 320 346 +26
Lines 93461 98385 +4924
==========================================
+ Hits 65995 71275 +5280
+ Misses 27466 27110 -356
Impacted Files | Coverage Δ | |
---|---|---|
src/Sparse/Matrix.jl | 58.95% <37.83%> (-2.70%) |
:arrow_down: |
src/Sparse/Preprocessing.jl | 64.17% <64.17%> (ø) |
|
src/Sparse/DiscLog.jl | 95.74% <95.74%> (ø) |
|
src/Sparse/IndexCalculus.jl | 96.23% <96.23%> (ø) |
|
src/Sparse/Wiedemann.jl | 96.55% <96.55%> (ø) |
|
src/Misc/Series.jl | 11.53% <0.00%> (-36.27%) |
:arrow_down: |
src/ModAlgAss/ModAlgAss.jl | 56.33% <0.00%> (-10.33%) |
:arrow_down: |
src/NumFieldOrd/NfOrd/Unit/FindUnits.jl | 77.77% <0.00%> (-9.73%) |
:arrow_down: |
src/Grp/Morphisms.jl | 77.77% <0.00%> (-7.51%) |
:arrow_down: |
src/NumFieldOrd/NfOrd/Clgp.jl | 76.23% <0.00%> (-5.83%) |
:arrow_down: |
... and 152 more |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
The tests fail with UndefVarError: disc_log not defined
. Either export disc_log
or use Hecke.disc_log
in the test.
The tests fail with
UndefVarError: disc_log not defined
. Either exportdisc_log
or useHecke.disc_log
in the test.
export in src/Sparse.jl or the file where the function is defined? same with IdxCalc function?
I think it would be easier to use Hecke.disc_log
and Hecke.IdxCalc
in the tests.
It seems that the file src/Sparse/DiscLog.jl
is never included in Hecke, so the tests are failing.
The include
calls should also be cleaned up. Files are included multiple times, which is not a thing in julia.
Also, the rule we follow is that any file in src/Sparse/*.jl
should be included in src/Sparse.jl
. This needs to be fixed.
The real error is now here: https://github.com/thofma/Hecke.jl/runs/7443994926?check_suite_focus=true#step:6:629
Tests are failing. Note that you can run the tests locally by doing Pkg.add("RandomExtensions")
(needs to be done only once) and then Hecke.test_module("Sparse")
.
Tests are failing. Note that you can run the tests locally by doing
Pkg.add("RandomExtensions")
(needs to be done only once) and thenHecke.test_module("Sparse")
.
They all pass locally. I forgot to add "Hecke." in front of some functions. This should now work.