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

Add Unit checking #66

Open
ewanwm opened this issue Sep 26, 2024 · 0 comments
Open

Add Unit checking #66

ewanwm opened this issue Sep 26, 2024 · 0 comments

Comments

@ewanwm
Copy link
Owner

ewanwm commented Sep 26, 2024

There are a number of libraries to do compile-time and run-time dimensional analysis. This would be a very useful feature to add to tensor operations. I think it would be good to have both: compile time checking for c++ to have no impact on run time speed, but run-time checking will need to be enabled when using python. I think best way to do this would be adding some CHECK_UNITS macro or something like this and implementation can be swapped out depending on cmake options.

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