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

refactor: perform dimensional analysis and numerical evaluation in same pass (WIP) #312

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

mgreminger
Copy link
Owner

@mgreminger mgreminger commented Jan 3, 2025

This will enable cases where dimensional analysis depends on results of evaluation pass (variable matrix size output, for example).

Removes one recursive walk through the expression tree.
@mgreminger mgreminger changed the title refactor: perform dimensional analysis and computation in same pass (WIP) refactor: perform dimensional analysis and numerical evaluation in same pass (WIP) Jan 3, 2025
…holder function

Simplifies replace_placeholder_funcs function by removing a special case
Values needed for dimensional analysis are stored in the evaluation pass instead
Code generation still has issues
Use strings instead of BigInt for efficiency
Firefox is consistently timing out on this test
rational exponents with large denominators causes very long calculation times.
Prevents losing exactness for symbolic results while speeding up numerical results
Add test for symbolic representation of small rationals
This allows functions like range that need to know the result of the calculation to set the correct dims. Range now works with inputs that have consistent units. New test added for this functionality.
Removed remaining unitless sub query code
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