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

Bug in function pinv #3012

Open
theoweeden opened this issue Aug 15, 2023 · 3 comments
Open

Bug in function pinv #3012

theoweeden opened this issue Aug 15, 2023 · 3 comments
Labels
Needs more information For issues that cannot be acted on without more information from the poster.

Comments

@theoweeden
Copy link

function _pinv (mat, rows, cols) {

Hiya!

I was using this in my codebase, and I found that it was the source of an issue. I ended up switching to the ml-matrix implementation of pseudoinverse, which seemed to fix my problem! I see that there's a comment suggesting this be reimplemented with SVD to improve precision - it may have been that. I can't unfortunately share the code which had the issue, but I thought I'd leave a comment all the same.

@josdejong
Copy link
Owner

Thanks for reporting Theo. Can you share a minimal example demonstrating the issue? Without that I have no clue what to look for.

@josdejong josdejong changed the title Contains a bug Bug in function pinv Aug 23, 2023
@gwhitney gwhitney added the Needs more information For issues that cannot be acted on without more information from the poster. label Oct 2, 2023
@gwhitney
Copy link
Collaborator

gwhitney commented Oct 6, 2023

@theoweeden can you at least provide a specific matrix that pinv produces incorrect results for? Presumably that wouldn't violate whatever restrictions you are under. Without some information to go on, this is not actionable and will have to be closed in a few weeks.

@theoweeden
Copy link
Author

Hi hi, sorry for the slow response! I'll try to get a matrix example to you in the next few days - it'll take me some time to recreate the bug. Thanks for your patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs more information For issues that cannot be acted on without more information from the poster.
Projects
None yet
Development

No branches or pull requests

3 participants