8000 Replace incorrect call to nonZeros by sarlinpe · Pull Request #3426 · colmap/colmap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Replace incorrect call to nonZeros #3426

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

Merged
merged 1 commit into from
Jun 28, 2025
Merged

Replace incorrect call to nonZeros #3426

merged 1 commit into from
Jun 28, 2025

Conversation

sarlinpe
Copy link
Member

The nonZeros() method is a member of Eigen's sparse types, but D_dense is a dense vector - in this case it always returns D_dense.size(), which is incorrect. See related discussion in #1494.

@sarlinpe sarlinpe requested review from ahojnnes and B1ueber2y June 28, 2025 17:18
@ahojnnes ahojnnes enabled auto-merge (squash) June 28, 2025 17:24
@ahojnnes ahojnnes merged commit 02111dc into main Jun 28, 2025
14 checks passed
@ahojnnes ahojnnes deleted the sarlinpe/fix-nonzero branch June 28, 2025 17:38
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

Successfully merging this pull request may close these issues.

2 participants
0