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

Numpy Issue with Bigger bit sizes #76

Open
DaveKirkland opened this issue Dec 13, 2022 · 1 comment
Open

Numpy Issue with Bigger bit sizes #76

DaveKirkland opened this issue Dec 13, 2022 · 1 comment
Labels
Numpy:LargePrecision Issue when numpy has to deal with large precision OS:Windows Issue when running in Windows
Milestone

Comments

@DaveKirkland
Copy link

Getting strange results when using larger bit sizes in numpy calls

# This works
w = Fxp([1, 1, 1, 1], dtype='fxp-s29/0')
y=np.cumsum(w)
y.info()

# This doesn't
w = Fxp([1, 1, 1, 1], dtype='fxp-s32/0')
y=np.cumsum(w)
y.info()

The first call returns [1 2 3 4], while the 2nd returns [-1 -1 -1 -1]

Version info
OS - Windows 10
Python - 3.8.5
Numpy - 1.21.2
fxpmath - 0.4.8

@francof2a francof2a added OS:Windows Issue when running in Windows Numpy:LargePrecision Issue when numpy has to deal with large precision labels Dec 21, 2023
francof2a added a commit that referenced this issue Jan 19, 2024
@francof2a francof2a mentioned this issue Feb 7, 2024
@francof2a
Copy link
Owner

solved in v0.4.9 for linux and MAC OS.
Support for windows still under review

@francof2a francof2a added this to the v0.4.10 milestone Feb 8, 2024
francof2a added a commit that referenced this issue Feb 10, 2024
This fix #73 #76 and #85 in windows OS using numpy 32 bit integer type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Numpy:LargePrecision Issue when numpy has to deal with large precision OS:Windows Issue when running in Windows
Projects
None yet
Development

No branches or pull requests

2 participants