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

Power of dimension are not casted to int when possible #8

Open
mocquin opened this issue Jul 14, 2023 · 0 comments
Open

Power of dimension are not casted to int when possible #8

mocquin opened this issue Jul 14, 2023 · 0 comments

Comments

@mocquin
Copy link
Owner

mocquin commented Jul 14, 2023

The power of dimension object could be (should be) casted back to int when possible. Should be discussed :

  • what are the advantages to casting back to int
  • what is associated speed loss

It is not the case for now :

from physipy import m, K

a = (m**2)**0.5
print(a.dimension)
# --> L**1.0
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