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

Use Holy traits for variable transformations #55

Open
cgarling opened this issue Dec 17, 2024 · 1 comment
Open

Use Holy traits for variable transformations #55

cgarling opened this issue Dec 17, 2024 · 1 comment

Comments

@cgarling
Copy link
Owner

Using 1, 0, -1 to indicate different transformation types, but this is runtime information that needs to be checked with if statements. Could use types (PositiveTransformation, NoTransformation, NegativeTransformation), and then define methods that operate on those types which should move the computation to compile time. Haven't tried this before but this webpage has some info on how to do this.

@cgarling
Copy link
Owner Author

Alternatively we could look into using TransformVariables.jl, but it seems a bit like overkill, probably don't need all the features it provides.

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

No branches or pull requests

1 participant