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

Genus representatives #30842

Closed
simonbrandhorst opened this issue Nov 1, 2020 · 23 comments
Closed

Genus representatives #30842

simonbrandhorst opened this issue Nov 1, 2020 · 23 comments

Comments

@simonbrandhorst
Copy link

Implements a function which returns representatives for a genus of quadratic forms.
Optional sage and Magma backend.

sage: IntegralLattice(9).genus().representatives()                           
(
[1 0 0 0 0 0 0 0 0]  [1 0 0 0 0 0 0 0 0]
[0 1 0 0 0 0 0 0 0]  [0 2 1 1 1 1 1 1 1]
[0 0 1 0 0 0 0 0 0]  [0 1 2 1 1 0 0 0 0]
[0 0 0 1 0 0 0 0 0]  [0 1 1 2 1 1 1 1 1]
[0 0 0 0 1 0 0 0 0]  [0 1 1 1 2 1 1 0 0]
[0 0 0 0 0 1 0 0 0]  [0 1 0 1 1 2 1 1 1]
[0 0 0 0 0 0 1 0 0]  [0 1 0 1 1 1 2 1 1]
[0 0 0 0 0 0 0 1 0]  [0 1 0 1 0 1 1 2 1]
[0 0 0 0 0 0 0 0 1], [0 1 0 1 0 1 1 1 2]
)

Depends on #30843

Component: quadratic forms

Author: Simon Brandhorst

Branch/Commit: f6d82ea

Reviewer: Travis Scrimshaw

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

@simonbrandhorst
Copy link
Author

Dependencies: #30843

@simonbrandhorst
Copy link
Author

Branch: u/sbrandhorst/genus_representatives

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 5, 2020

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

b15922dAdded a Note block.
b6657afformatting
3bfdccfMerge branch 't/30843/abeliangroup_gap_quotient_group' into t/30842/genus_representatives
4e786f2docs

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 5, 2020

Commit: 4e786f2

@tscrim
Copy link
Collaborator

tscrim commented Nov 8, 2020

comment:5

Some quick comments (I haven't had time to fully read through it): You need to change MATH:: -> .. MATH::. Also, there are some PEP8 spacing that would be good to implement; mainly the ==0 -> == 0 and similar.

@simonbrandhorst
Copy link
Author

comment:6

Which one is better?

1)a==b and c==d

2)a == b and c == d
I tend to 1) since it
is the analogue of a*b + c*d vs a * b + c * d

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 8, 2020

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

ab9361fpep

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 8, 2020

Changed commit from 4e786f2 to ab9361f

@tscrim
Copy link
Collaborator

tscrim commented Nov 8, 2020

comment:8

That is an interesting point with and being another operator. However, I would still say 1 because it seems to be what is most widely used (and I am so used to seeing it that way, but that is my personal bias).

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 9, 2020

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

63ce0a2pep pep pep pep pep pep

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 9, 2020

Changed commit from ab9361f to 63ce0a2

@simonbrandhorst
Copy link
Author

comment:10

There you go. Pep'ed all the files touched.

@tscrim
Copy link
Collaborator

tscrim commented Nov 9, 2020

Reviewer: Travis Scrimshaw

@tscrim
Copy link
Collaborator

tscrim commented Nov 9, 2020

comment:11

Thank you. Just add your name to the authors and set a positive review.

@simonbrandhorst
Copy link
Author

Author: Simon Brandhorst

@fchapoton
Copy link
Contributor

comment:13

come on guys, there are some OUTPUT:: lurking around ! Please look at the patchbot complaints.

@simonbrandhorst
Copy link
Author

comment:14

Hi you are right of course, I should have waited for a green bot.
Let's do that.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 10, 2020

Changed commit from 63ce0a2 to 121eff2

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 10, 2020

Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:

3fccfb5take care of patchbot complaints
121eff2fix a failing doctest

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 10, 2020

Changed commit from 121eff2 to f6d82ea

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 10, 2020

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

f6d82ealazy import and pickling

@tscrim
Copy link
Collaborator

tscrim commented Nov 10, 2020

comment:17

Now there is a morally green patchbot.

@vbraun
Copy link
Member

vbraun commented Nov 29, 2020

Changed branch from u/sbrandhorst/genus_representatives to f6d82ea

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

4 participants