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

provide gcd for new polynomial rings through _gcd_univariate_polynomial #13442

Closed
saraedum opened this issue Sep 9, 2012 · 18 comments
Closed

Comments

@saraedum
Copy link
Member

saraedum commented Sep 9, 2012

Currently, to add gcd functionality for a new polynomial ring, one needs to add a specialized subclass of PolynomialElement.

The attached patch allows rings to provide a _gcd_univariate_polynomial method which will be called by PolynomialElement to compute gcds.

This is similar to #10635.

Depends on #13441

Component: basic arithmetic

Keywords: sd59

Author: Julian Rueth

Branch/Commit: 8126ef1

Reviewer: Bruno Grenet

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

@saraedum
Copy link
Member Author

saraedum commented Sep 9, 2012

Changed dependencies from 13441 to #13441

@saraedum
Copy link
Member Author

comment:2

Attachment: trac_13442.patch.gz

@saraedum
Copy link
Member Author

comment:3

I want to remove self from the docstrings.

@pjbruin
Copy link
Contributor

pjbruin commented Aug 13, 2013

comment:5

Replying to @saraedum:

I want to remove self from the docstrings.

Is this part of some style recommendation? I would say referring to self in the docstring is perfectly acceptable, since there is an object called self and it is usually clear what kind of object it is. Personally, I strongly prefer self over constructions like "this element".

@nilesjohnson
Copy link
Mannequin

nilesjohnson mannequin commented Jan 27, 2014

Branch: u/niles/ticket/13442

@nilesjohnson
Copy link
Mannequin

nilesjohnson mannequin commented Jan 27, 2014

Commit: b3eee8a

@nilesjohnson
Copy link
Mannequin

nilesjohnson mannequin commented Jan 27, 2014

comment:7

rebased and converted to git branch; no other changes


New commits:

b3eee8aTrac #13442: rings can provide _gcd_univariate_polynomial for polynomial factorization

@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
@saraedum
Copy link
Member Author

Changed branch from u/niles/ticket/13442 to u/saraedum/ticket/13442

@saraedum
Copy link
Member Author

Changed keywords from none to sd59

@pjbruin
Copy link
Contributor

pjbruin commented Jun 25, 2014

comment:12

If I'm not mistaken, INPUT and OUTPUT blocks should not be indented.


New commits:

d8d7952Merge branch 'develop' into ticket/13442
2947606Improved docstring of polynomial gcd.

@pjbruin
Copy link
Contributor

pjbruin commented Jun 25, 2014

Changed commit from b3eee8a to 2947606

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 9, 2014

Changed commit from 2947606 to 8126ef1

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 9, 2014

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

8126ef1Merge branch 'develop' into ticket/13442

@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin removed this from the sage-6.3 milestone Aug 10, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin added this to the sage-6.4 milestone Aug 10, 2014
@bgrenet
Copy link

bgrenet commented Dec 17, 2014

comment:15

I agree with [#comment:5 pbruin] on self versus this polynomial. I find the documentation clearer with self, and this seems to be more consistent with the rest of Sage.

Tell me what do you think of this, I'll positive review the ticket then. All tests passed with the current commits.

@saraedum
Copy link
Member Author

comment:16

Replying to @bgrenet:

I agree with [#comment:5 pbruin] on self versus this polynomial. I find the documentation clearer with self, and this seems to be more consistent with the rest of Sage.

Both approaches have their drawbacks. self makes it harder to read if you do not know about python, i.e., if a 'user' consults the help. 'this polynomial' makes things slightly more difficult to understand if you know about self.
I have been asked on different tickets to replace self with something more appropriate. Sage is not really consistent with this.

Tell me what do you think of this, I'll positive review the ticket then. All tests passed with the current commits.

I do not really care how we do this in sage. Either way is fine with me.

@bgrenet
Copy link

bgrenet commented Jan 22, 2015

Reviewer: Bruno Grenet

@bgrenet
Copy link

bgrenet commented Jan 22, 2015

comment:17

I actually haven't a strong case for or against any of both solutions. I could have set it to positive review earlier, so let me do it now!

@vbraun
Copy link
Member

vbraun commented Jan 24, 2015

Changed branch from u/saraedum/ticket/13442 to 8126ef1

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

6 participants