Skip to content

Commit

Permalink
Target: Use float32.
Browse files Browse the repository at this point in the history
This makes sure it doesn't get promoted to float64 or complex128.
We only use it with a 0.0 value anyway.
  • Loading branch information
Sbte committed Jul 5, 2024
1 parent 5cb0e8c commit a676781
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jadapy/Target.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from numpy import float64
from numpy import float32

class Target(float64):
class Target(float32):
def __new__(cls, *args, **kwargs):
return float64.__new__(cls, *args, **kwargs)
return float32.__new__(cls, *args, **kwargs)


SmallestMagnitude = Target(0.0)
Expand Down

0 comments on commit a676781

Please sign in to comment.