Skip to content

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

Description

@mocquin

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions