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

Removing unumpy.py core dependency on matrices #120

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AdityaSavara
Copy link
Contributor

Removing numpy deprecation warning mentioned here #114

Changed "asmatrix" to "asarray"
Changed * operator to @ operator for the inverse functions (as shown in diff file below).
Passed unit tests on my computer except for the lib2to3 unit test since I do not have that module.
This also removed the deprecation warnings during unit tests on my code, without breaking my own code's unit tests.

Adding .conj() for non-real numbers.

I don't have a unit test to check correct the behavior for non-real numbers.

Changed "asmatrix" to "asarray"
Changed * to @
Passed unit tests on my computer except for the lib2to3 unit test since I do not have that module.
The transpose() function was used to replace .H, but that only works for real numbers. 
So a .conj() call has been placed prior to the transpose call.
Of course these edits do not need to be accepted.  However, old comments were deprecated.
@AdityaSavara
Copy link
Contributor Author

AdityaSavara commented Feb 11, 2020

I am not sure if the integration checks are failing because I used the @ operator or due to something else. Would it be better to use numpy.matmul?

@ep12
Copy link
Contributor

ep12 commented Feb 14, 2020

Would it be better to use numpy.matmul?

Probably not, the errors in the logs seem to not be related to your changes. I guess those errors affect not only this pull request. I think my pr (#116) fixes some of the bugs because they annoyed me a lot...

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

Successfully merging this pull request may close these issues.

2 participants