-
Couldn't load subscription status.
- Fork 162
Improvements for sparse modules from #4951 #4955
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
Changes from all commits
0567d28
9b95238
397f439
b3ec640
f7d7fb6
2fc3d50
b10ca98
8304f32
418b15d
55106b1
101803b
cdf82cb
c501584
eefd449
137fddf
d566883
a93e861
bfc9468
49ad128
3e71ef2
cc20a07
f326813
41561b2
3f467d5
c7b7551
2147be4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -370,11 +370,13 @@ | |
| If no such `r` exists, an exception is thrown. | ||
| """ | ||
| function coordinates_via_transform(a::FreeModElem{T}, generators::ModuleGens{T}) where T | ||
| A = get_attribute(generators, :transformation_matrix) | ||
| A === nothing && error("No transformation matrix in the Gröbner basis.") | ||
| if iszero(a) | ||
| return sparse_row(base_ring(parent(a))) | ||
| iszero(a) && return sparse_row(base_ring(parent(a))) | ||
| SA = get_attribute!(generators, :sparse_transformation_matrix) do | ||
| A = get_attribute(generators, :transformation_matrix) | ||
| A === nothing && error("No transformation matrix in the Gröbner basis.") | ||
| sparse_matrix(A) | ||
| end | ||
|
Comment on lines
+374
to
378
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @hannes14 : This is a temporary workaround to do things with sparse matrices for the lifting. Did you already look into providing methods to get a sparse data structure from Singular directly? Then I could adapt this PR to use that one directly. |
||
|
|
||
| @assert generators.isGB | ||
| if base_ring(generators) isa Union{MPolyQuoRing,MPolyRing} | ||
| if !is_global(generators.ordering) | ||
|
|
@@ -392,7 +394,7 @@ | |
| Rx = base_ring(generators) | ||
| coords_wrt_groebner_basis = sparse_row(Rx, s[1], 1:ngens(generators)) | ||
|
|
||
| return coords_wrt_groebner_basis * sparse_matrix(A) | ||
| return coords_wrt_groebner_basis * SA | ||
| end | ||
|
|
||
| @doc raw""" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.