Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Test with complex numbers and complex ffts #2

Merged
merged 1 commit into from
Jan 2, 2020
Merged

Test with complex numbers and complex ffts #2

merged 1 commit into from
Jan 2, 2020

Conversation

matteobachetti
Copy link
Contributor

No description provided.

@fasiha
Copy link
Owner

fasiha commented Jan 2, 2020

Will the test work for fully-complex inputs (where imaginary component is different from zero)?

@fasiha fasiha merged commit 1bc5a20 into fasiha:master Jan 2, 2020
@matteobachetti matteobachetti deleted the patch-1 branch January 2, 2020 17:09
@matteobachetti
Copy link
Contributor Author

Right. I was worried about the failure with complex numbers and just tried the same input with a different data type. However, if I use

  x = np.random.randint(-30, 30, size=(nx, nx)) + np.random.randint(-30, 30, size=(nx, nx)) *1j
  h = np.random.randint(-20, 20, size=(nh, nh)) + np.random.randint(-20, 20, size=(nh, nh)) * 1j

The test fails again. So there must be something else going wrong there...

@fasiha
Copy link
Owner

fasiha commented Jan 2, 2020

No worries, I'm missing an extra np.conj, I should have a fix with full complex support shortly!

@matteobachetti
Copy link
Contributor Author

Thanks! Also, thanks a lot for releasing this code to the public domain. I will use it in another piece of software (released with the BSD license), with an acknowledgement and a link to this page. Let me know if it is sufficient or you would like some other mention/reference. I haven't found a CITATION guideline or similar :).

@fasiha
Copy link
Owner

fasiha commented Jan 2, 2020

Yay, published 1.1.1 to PyPI, please check it out 🥳!

I hope I didn't break anything 😅…

Let me know if it is sufficient or you would like some other mention/reference

This isn't just sufficient, it's more than sufficient 🙏. No CITATION, I'm an independent programmer, and signal processing is just my side hobby.

@matteobachetti
Copy link
Contributor Author

@fasiha: In order to limit the dependencies, I would like to include the python source (+ array_range and nextprod) as part of the software I distribute, with proper acknowledgement. This is why I asked :). The unlicense allows it, but I still like to make sure that the work of different people is properly recognized.

@fasiha
Copy link
Owner

fasiha commented Jan 2, 2020

Thank you for taking attribution and licenses so seriously, as both a user and as an open source author I truly appreciate it!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants