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

Generalize core primitives to abstract number type #447

Open
sorki opened this issue Oct 27, 2023 · 0 comments
Open

Generalize core primitives to abstract number type #447

sorki opened this issue Oct 27, 2023 · 0 comments

Comments

@sorki
Copy link
Contributor

sorki commented Oct 27, 2023

We can turn circle :: ℝ -> SymbolicObj2 into e.g. circle :: Num a => a -> SymbolicObj2 a.

That would allow us to use different numerical types instead of being fixed on Doubles. Some fun examples include

It would also open a lot of doors to other backends like accelerate or GLSL, where symbolic objects could be represented as, well.. symbolic functions.

Also an analytical simplification step could be implemented before actual discretization and evaluation which could drastically improve performance for some cases.

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