8000 Fix SnOverSmFunction printing info. Expose SnOverSm to python; Added .gitignore; Created a python test for S4overS2 by Ikiga1 · Pull Request #1 · risi-kondor/Snob2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix SnOverSmFunction printing info. Expose SnOverSm to python; Added .gitignore; Created a python test for S4overS2 #1

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Ikiga1
Copy link
@Ikiga1 Ikiga1 commented Dec 17, 2021

Hi Risi,
I've been looking at the repo recently (thanks for making it publicly available!) and I've been trying to have the SnOverSm Fourier transform working. I felt like it'd be nice to contribute/help while working on it.

I've fixed SnOverSmFunction's str function: now it prints both the coset representatives and the function values.
I've exposed the SnOverSm class to the python API and I think there's a bug in this class. I've uploaded a test file test_S4OverS2.py. This test file iterates over all the element of S4 and prints their index for S4OverS2. While each coset contains 2 elements, it seems to me that the cosets are incorrect. For instance, I think that [ 1 3 2 4 ] and [ 2 3 1 4 ] shouldn't belong to the same coset. Am I missing something or do we need to fix the logic behind "element" and "index" in SnOverSm.hpp?

Also, I've added a .gitignore to avoid pushing unnecessary files in the repo. I've created it with https://gitignore.io using Python, Windows, MacOS, and Linux as keywords. I've also added the python/Snob2.egg-info/, python/build/, and python/dist/ folders, so to keep them clean.

Best,
Armando

@Ikiga1
Copy link
Author
Ikiga1 commented Jan 28, 2022

Update: figured out that we were using different notations and that the cosets are correct. There was still a bug in the indexing of SnOverSm that made the fourier transforms of functions over Sn(3) and SnOverSm(3,1) be different (for instance). The second commit includes a fix for this bug and exposes getters and setters for SnOverSmFunctions.

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.

1 participant
0