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

Faster listing of number field homsets #10843

Closed
sagetrac-fwclarke mannequin opened this issue Feb 24, 2011 · 12 comments
Closed

Faster listing of number field homsets #10843

sagetrac-fwclarke mannequin opened this issue Feb 24, 2011 · 12 comments

Comments

@sagetrac-fwclarke
Copy link
Mannequin

sagetrac-fwclarke mannequin commented Feb 24, 2011

The patch speeds up the calculation of homomorphisms between number fields. This is mainly achieved by avoiding unnecessary checking. Doctests are also updated.

CC: @lftabera @rharron @sagetrac-tfeulner @simon-king-jena

Component: number fields

Author: Francis Clarke

Branch/Commit: e2ee8a3

Reviewer: Jeroen Demeyer

Issue created by migration from https://trac.sagemath.org/ticket/10843

@sagetrac-fwclarke sagetrac-fwclarke mannequin added this to the sage-5.1 milestone May 17, 2012
@sagetrac-fwclarke
Copy link
Mannequin Author

sagetrac-fwclarke mannequin commented May 4, 2013

Attachment: trac_10843.patch.gz

rebased for 5.9

@sagetrac-fwclarke
Copy link
Mannequin Author

sagetrac-fwclarke mannequin commented May 4, 2013

comment:3

The patch has been rebased for Sage-5.9.

@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@videlec
Copy link
Contributor

videlec commented Jun 13, 2014

comment:8

Hi,

Looks nice.

I uploaded your patch in a git branch and added three commits above:

  • the first one to remove the trailing whitespaces
  • the second one to fits with Sage standard for the docs and make the code more compatible with Python 3
  • the third to have a better caching

Please, tell me what you think.

Vincent


New commits:

20f21a6#10843 faster lising of number field homsets
4040bfdtrac #10843: remove trailing whitespaces
a2abefatrac #10843: documentation, indentation
51569d9trac #10843: improved caching

@videlec
Copy link
Contributor

videlec commented Jun 13, 2014

Commit: 51569d9

@videlec
Copy link
Contributor

videlec commented Jun 13, 2014

Branch: public/10843

@sagetrac-fwclarke
Copy link
Mannequin Author

sagetrac-fwclarke mannequin commented Jul 9, 2014

comment:9

Thanks for this.  It all seems to be working perfectly.

@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@jdemeyer
Copy link

comment:11

Why the separate branches for D absolute/relative? The following works in both cases:

roots = D.polynomial().roots(ring=C, multiplicities=False)

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 25, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

946525btrac #10843: remove separate absolute/relative branches
e2ee8a3trac #10843: add check keywords and an associated doctest

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 25, 2014

Changed commit from 51569d9 to e2ee8a3

@sagetrac-fwclarke
Copy link
Mannequin Author

sagetrac-fwclarke mannequin commented Oct 25, 2014

comment:13

Replying to @jdemeyer:

Why the separate branches for D absolute/relative?

Assuming that you meant C rather than D, I've changed the code as suggested. I don't know why this was done separately. Perhaps the simpler approach didn't work when this ticket began four years ago.

I've made one other change which should have been made before. It solves a problem which arose in http://ask.sagemath.org/question/24173/homomorphisms-for-relative-number-fields/.

@jdemeyer
Copy link

Reviewer: Jeroen Demeyer

@vbraun
Copy link
Member

vbraun commented Oct 29, 2014

Changed branch from public/10843 to e2ee8a3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants