We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
arr_fxp.bin() for arr_fxp = Fxp(np.array([[1,2]])) raised the following exception:
arr_fxp.bin()
arr_fxp = Fxp(np.array([[1,2]]))
rval = [ utils.binary_repr(int(val.real), n_word=self.n_word, n_frac=n_frac_dot) + '+' + utils.binary_repr(int(val.imag), n_word=self.n_word, n_frac=n_frac_dot) + 'j' for val in self.val] TypeError: only size-1 arrays can be converted to Python scalars
rval = [ utils.binary_repr(int(val.real), n_word=self.n_word, n_frac=n_frac_dot) + '+' + utils.binary_repr(int(val.imag), n_word=self.n_word, n_frac=n_frac_dot) + 'j' for val in self.val]
TypeError: only size-1 arrays can be converted to Python scalars
The text was updated successfully, but these errors were encountered:
Fix complex binary, hexadecimal and base representation for arrays (i…
d3279ec
…ssue #56)
Thanks for the issue. It wasn't take into account multidimensional arrays in those representation methods.
I fixed that in the unreleased 0.4.6 version. So, in the next release it will be solved!
Sorry, something went wrong.
Issue solved in v0.4.6
No branches or pull requests
arr_fxp.bin()
forarr_fxp = Fxp(np.array([[1,2]]))
raised the following exception:The text was updated successfully, but these errors were encountered: