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

Use (dp,c) as default ordering for Singular rings #318

Merged
merged 4 commits into from
Apr 17, 2020

Conversation

zickgraf
Copy link
Member

This PR changes the default ordering used for modules in Singular: by default, Singular uses C (capital letter) which means that the last entry of a vector gets the biggest weight. With this PR, all rings use c (small letter) which means that the first entry of a vector gets the biggest weight. All operations computing transformations vectors (BasisOfRows/ColumnsCoeff, SyzygiesOfRows/Columns, Left/RightDivide) should benefit from this because of the way Singular computes transformation vectors. Other operations should be more or less unaffected. A trivial test case in which the runtime drops from >minutes to some seconds is included in the PR. In real applications the improvement depends on the concrete examples. Large examples should benefit more whereas for small examples there should be nearly no difference.

Differences in tests are, of course, expected. The CI fails because D-Modules and ModulePresentationsForCAP have to be adapted. I will open PRs in the corresponding repos soon.

@sebastianpos @kamalsaleh I would be interested if you notice a change of performance in your computations using this PR :-)

zickgraf added a commit to homalg-project/D-Modules that referenced this pull request Apr 17, 2020
zickgraf added a commit to zickgraf/CAP_project that referenced this pull request Apr 17, 2020
@zickgraf zickgraf force-pushed the singular_performance branch from 8903fa0 to d9ae399 Compare April 17, 2020 15:30
@mohamed-barakat mohamed-barakat merged commit 9bc567f into homalg-project:master Apr 17, 2020
@mohamed-barakat
Copy link
Member

mohamed-barakat commented Apr 17, 2020

Thank you very much Fabian. I will report any speed improvements or regressions I notice.

@mohamed-barakat
Copy link
Member

The test suite of the Chevalley paper dropped from 126 sec wall time to 114 sec :)

mohamed-barakat added a commit to homalg-project/HomalgProject.jl that referenced this pull request Apr 18, 2020
See homalg-project/homalg_project#318:
Use (dp,c) as default ordering for Singular rings
mohamed-barakat added a commit to homalg-project/HomalgProject.jl that referenced this pull request Apr 18, 2020
See homalg-project/homalg_project#318:
Use (dp,c) as default ordering for Singular rings
mohamed-barakat added a commit to homalg-project/HomalgProject.jl that referenced this pull request Apr 18, 2020
See homalg-project/homalg_project#318:
Use (dp,c) as default ordering for Singular rings
mohamed-barakat added a commit to homalg-project/HomalgProject.jl that referenced this pull request Apr 18, 2020
See homalg-project/homalg_project#318
Use (dp,c) as default ordering for Singular rings
mohamed-barakat added a commit to homalg-project/HomalgProject.jl that referenced this pull request Apr 18, 2020
See homalg-project/homalg_project#318:
Use (dp,c) as default ordering for Singular rings
mohamed-barakat added a commit to homalg-project/HomalgProject.jl that referenced this pull request Apr 18, 2020
See homalg-project/homalg_project#318:
Use (dp,c) as default ordering for Singular rings
sebastianpos added a commit to homalg-project/CAP_project that referenced this pull request Apr 20, 2020
mohamed-barakat added a commit to homalg-project/OscarForHomalg that referenced this pull request Apr 27, 2020
mohamed-barakat added a commit to homalg-project/OscarForHomalg that referenced this pull request Apr 28, 2020
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.

2 participants