You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In some cases LinearOperator can not be used in place of matrices because it doesn't have ndim attribute.
Describe the solution you'd like
It would be convenient, if LinearOperator had ndim attribute, that is always equal 2.
Describe alternatives you've considered
The simplest alternative is len(op.shape), but it looks worse than op.ndim.
Also here scikit-learn/scikit-learn#16463 (comment) folks worry about performance penalty.
Additional context (e.g. screenshots)
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
In some cases
LinearOperator
can not be used in place of matrices because it doesn't havendim
attribute.Describe the solution you'd like
It would be convenient, if
LinearOperator
hadndim
attribute, that is always equal2
.Describe alternatives you've considered
The simplest alternative is
len(op.shape)
, but it looks worse thanop.ndim
.Also here scikit-learn/scikit-learn#16463 (comment) folks worry about performance penalty.
Additional context (e.g. screenshots)
The text was updated successfully, but these errors were encountered: