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

Parameterizing Schemes by Frame Dimension #85

Open
Checkmate50 opened this issue Apr 3, 2020 · 0 comments
Open

Parameterizing Schemes by Frame Dimension #85

Checkmate50 opened this issue Apr 3, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Checkmate50
Copy link
Contributor

Currently we require that each scheme includes a reference frame of a given dimension, such as:

with frame(3) r:
scheme cart3 : geometry { 
  object point is float[3];
  ...
}

However, this is annoying from the programmer's perspective and from the library developers perspective. The programmer has to remember which version to use with which frame, and the library developer has to write several definitions of each geometry for each definition, all of which are nearly identical.

It would be preferable to instead support schemes inferring their dimension based on the given reference frame. For example, we might have the following:

with frame(n) r:
scheme cart : geometry {
  object point is float[n];
  ...
}

This feature requires some thought (how do we support addition in such a definition), but would be a great thing to have!

@Checkmate50 Checkmate50 added enhancement New feature or request help wanted Extra attention is needed labels Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant