-
Notifications
You must be signed in to change notification settings - Fork 475
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
Support for numpy matrix operations #470
Comments
Has this been implemented? The documentation states that We could implement a temporary solution like this until the more fundamental solutions are resolved:
|
Revisit after #905 |
for func_str in ['solve']:
implement_func('function', func_str, input_units=None, output_unit='div') to |
A few things regarding matrix operations that aren't working properly that would be useful.
np.dot
e.g.A.dot(b)
orb.dot(A)
. Currently, ifA,b
are arrays containing quantities, this works. However, ifA,b
areQuantity
's, then this operation does not return the correct result. I believe this is related to numpy: matrix multiplication by left give wrong results #39 .np.linalg.solve
. Solving a system whereA,b
are instances ofQuantity
the method fails with aTypeError
in line 1235 ofquantity
. I think this is related to Prevent crash when context is None #420. IfA,b
are arrays ofQuantity
s the method fails inlinalg
with aTypeError: no loop matching the specified signature was found for ufunc solve1
The text was updated successfully, but these errors were encountered: