How to implement fixed-point binary support in numpy
I have a homebrew binary fixed-point arithmetic support library and would like to add numpy array support. Specifically I would like to be able to pass around 2D arrays of fixed-point binary numbers and do various operations on them such as addition, subtraction, multiplication, rounding, changing of fixed point format, etc. The fixed-point support under the hood works on integers, and separate tracking of fixed-point format data (number of integer and fractional bits) for range checking and type conversion. I have been reading the numpy documentation on ndarray subclassing and dtype, it seems
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.