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

Remove dnetup format and add Magic Point Shop files #1

Merged
merged 8 commits into from
Feb 5, 2024

Conversation

alegresor
Copy link
Collaborator

@alegresor alegresor commented Dec 20, 2023

We should remove support for the dnetup format. This requires generating matrices to have the first row be the most significant bit. This gist converts digital net files from the Magic Point Shop into the desired format by reversing the bits.

@fjhickernell
Copy link
Member

fjhickernell commented Dec 20, 2023 via email

@alegresor
Copy link
Collaborator Author

Good idea, but let’s not use o as a variable. It can be confusing.

Changed to $v$.

@pierrelecuyer
Copy link
Collaborator

Interesting point. Maybe the right question is Do we really need dnetup? When I wrote this proposal, I tried to put the minimal number of compulsory parameters or options in the files, nothing that was not essential, to make the file format as simple as possible. This is the reason why there are different file types. At first, I had only dnet, not dnetup. In my software, I use only dnet and do not support dnetup, because the generating matrices are represented in the dnet format when I generate the points, and so I want to read them in that format. It seems to me that it should be the same for most QMC software. I also never read the first line with the file type, it is always assumed. I think Dirk Nuyens asked me to add dnetup as an alternate file type because he likes to use this representation, and so I did, but without changing the dnet file format at all. The idea is to avoid changing current formats when we add new ones. I assumed that the support of dnetup would be only optional. If it was only for me, I would have only dnet.

Now if most people prefer having an additional parameter for how the columns are represented, that's fine with me. But perhaps we should try to be consistent with other file types as well. For example sobol vs soboljk. Should we put an additional parameter there as well? Or should we have a single "file type" and the format will be read as the first parameter, in all cases? I expect that not all types will be implemented in all software, and that's fine.

Let me know what you decide in the end. Regards.

-- Pierre

@pierrelecuyer
Copy link
Collaborator

One small comment in the proposed changes (in green): In most places, "most significant bit" should be "most significant digit", because the base b is not always 2.

@alegresor
Copy link
Collaborator Author

One small comment in the proposed changes (in green): In most places, "most significant bit" should be "most significant digit", because the base b is not always 2.

Changed in the latest commit.

@alegresor alegresor changed the title add MSB vs LSB to dnet parameters Remove dnetup format and add Magic Point Shop files Dec 21, 2023
@alegresor
Copy link
Collaborator Author

Interesting point. Maybe the right question is Do we really need dnetup? When I wrote this proposal, I tried to put the minimal number of compulsory parameters or options in the files, nothing that was not essential, to make the file format as simple as possible. This is the reason why there are different file types. At first, I had only dnet, not dnetup. In my software, I use only dnet and do not support dnetup, because the generating matrices are represented in the dnet format when I generate the points, and so I want to read them in that format. It seems to me that it should be the same for most QMC software. I also never read the first line with the file type, it is always assumed. I think Dirk Nuyens asked me to add dnetup as an alternate file type because he likes to use this representation, and so I did, but without changing the dnet file format at all. The idea is to avoid changing current formats when we add new ones. I assumed that the support of dnetup would be only optional. If it was only for me, I would have only dnet.

Now if most people prefer having an additional parameter for how the columns are represented, that's fine with me. But perhaps we should try to be consistent with other file types as well. For example sobol vs soboljk. Should we put an additional parameter there as well? Or should we have a single "file type" and the format will be read as the first parameter, in all cases? I expect that not all types will be implemented in all software, and that's fine.

Let me know what you decide in the end. Regards.

-- Pierre

I think only supporting dnet will help others adopt our standard and more easily write generators. I've changed the aim of this pull request to be removing support for dnetup. The new PR description includes a gist which converts generating matrices from the Magic Point Shop into the dnet format. All Magic Point Shop lattice and digital net files have been converted and added to the PR. Hopefully the Magic Point Shop and LatNet Builder will directly output the lattice and dnet formats in the future to avoid conversions.

@alegresor
Copy link
Collaborator Author

@pierrelecuyer can you give this updated PR a review?

@pierrelecuyer pierrelecuyer merged commit 75722ee into main Feb 5, 2024
@pierrelecuyer
Copy link
Collaborator

I merged the Pull request; sorry about the delay. However, it seems there are still problems with the formulas in the readme file, as I mentioned earlier by email.

Also, it seems that the readme file is essentially a copy of the document that I wrote and put here:
https://www-labs.iro.umontreal.ca/~lecuyer/myftp/papers/qmc-points-format-2023.pdf
However, I think it would be a good idea to mention it and put a link to this .pdf file.
I just made some updates in it: I removed dnetup again, added one sentence in red, and made a few very small corrections.

Unfortunately, I do not have time to check carefully if the copy on the GitHub page is exact (no errors or changes).

-- Pierre

@alegresor
Copy link
Collaborator Author

Thanks Pierre!

There is an issue for the readme markdown math not rendering #2

I created README.md as a direct copy of your .tex file which gets displayed on the front page of our repo.

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.

3 participants