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

inv of singular matrix returns some matrix without error #43

Open
gitogito opened this issue Apr 7, 2022 · 0 comments
Open

inv of singular matrix returns some matrix without error #43

gitogito opened this issue Apr 7, 2022 · 0 comments

Comments

@gitogito
Copy link

gitogito commented Apr 7, 2022

I tried this script.

require "numo/linalg"

a = Numo::DFloat[[0, 0],
                 [0, 0]]
p(Numo::Linalg.inv(a))

Result is here.

Numo::DFloat#shape=[2,2]
[[0, 0], 
 [0, 0]]

I think that a matrix with all zero elements has no inverse matrix.

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

No branches or pull requests

1 participant