-
Notifications
You must be signed in to change notification settings - Fork 101
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
Made LinearOperator independent of spLinearOperator #482
Conversation
Thank you! I'll try to review this in coming days and let you know :) |
This commit cleans up the linearoperator module, reducing the use of LinearOperator and aslinearoperator only to those cases where it is stricly needed - mostly to allow mix pylops and scipy operators as much as possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are some comments. I have also made a commit where I propose changes according to my comments.
@rohanbabbar04, feel free to go over and let me know what you think.
Thank You @mrava87 for reviewing my PR, I have updated the docs and agree with all your changes. |
Will do soon :) |
I just identified a problem with For example:
now returns Currently investigating why... |
Is the bug fixed? |
Just tested the code
|
So I am removing the docstrings to make the |
Yes the code is fixed :) |
@mrava87 Made the commit all checks are now successful... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made some extra changes as you completely removed any mention to scipy LinearOperator, which instead is worth still mentioning (also because we can still mix our operators with theirs - and with their solvers!)
@rohanbabbar04 I am satisfied with the current status of the PR. Since we are making changes to a core method of PyLops, I want to get the feedback of another core developer before merging.. please be patient, we will let you know soon when this is ready to go :) |
I'll be trying this patch very soon! Sorry for the delays! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great stuff. Looks good to me!!
For issue #328
_AdjointLinearOperator
,_TransposeLinearOperator
and_ProductLinearOperator
__matmul__
,__rmatmul__
,transpose
andadjoint
LinearOperator
Still need to change/update the docs, if code seems fine...