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

[Draft] Add dumping functions #1

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DanielPointon
Copy link

@DanielPointon DanielPointon commented Mar 14, 2024

Here's as far as I got:

  • Reverse engineered the file parsing code to make two functions, MultiplicationFileToString and MultiplicationFilesToString.
  • Tested that they work for n=3, as follows
gap> GenerateMultiplicationTableArray := function(n)                                                                                                
>     local results, i;                                                                                                                             
>     results := [];                                                                                                                                
>     for i in [1..18] do                                                                                                                           
>         Add(results, RecoverMultiplicationTableNC(n, i));                                                                                         
>     od;                                                                                                                                           
>     return results;                                                                                                                               
> end;;                                                                                                                                             
gap>                                                                                                                                                
gap> MultiplicationTablesToString(GenerateMultiplicationTableArray(3));                                                                             
"001000000110000001\n021000002020000002\n001000000110000011\n000000000001111112\n020000012120011210\n021000202020200222\n020001212120212220\n00012\ 
2222222222221"                        

Which is the correct file contents for n=3

  • Added some basic infrastructure that I think would work for loading these new files in.

Hopefully that helps the next person (most likely me) who looks at gap-packages#31

@DanielPointon DanielPointon reopened this Apr 1, 2024
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