We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
>>> a = np.stack((np.eye(3),)*4, axis=0) >>> ai = np.linalg.inv(a) >>> assert (a == ai).all() >>> api = np.linalg.pinv(a) Traceback (most recent call last): File "<pyshell#9>", line 1, in <module> np.linalg.pinv(a) File "C:\Program Files\Python 3.5\lib\site-packages\numpy\linalg\linalg.py", line 1668, in pinv if s[i] > cutoff: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
The text was updated successfully, but these errors were encountered:
BUG: Fix pinv on matrix stacks
bab798d
Fixes numpy#8826
36486d4
No branches or pull requests
The text was updated successfully, but these errors were encountered: