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

lyubeznikResolution bug #3480

Open
sterns opened this issue Sep 17, 2024 · 1 comment
Open

lyubeznikResolution bug #3480

sterns opened this issue Sep 17, 2024 · 1 comment

Comments

@sterns
Copy link

sterns commented Sep 17, 2024

In the simplicial Complexes package if the lyubeznikResolution function is passed a monomialIdeal that has 6 or more minimal generators an index error occurs. It seems the issue stems from the following lines in M2/Macaulay2/packages/SimplicialComplexes/Code.m2

841    MinGens := flatten entries mingens I; 
842    MO := opts.MonomialOrder;
843    R := QQ(monoid[vars(0..#(mingens I)-1)]); 

In the last line # is applied to the matrix mingens I. This always returns 5, the number of keys in the dictionary used to store matrices. This can be fixed by replacing line 843 with R := QQ(monoid[vars(0..#(MinGens)-1)]); which instead uses the local variable MinGens.

@d-torrance
Copy link
Member

Great catch! Would you like to open a pull request with the fix?

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

No branches or pull requests

2 participants