Skip to content

Replace incorrect call to nonZeros#3426

Merged
ahojnnes merged 1 commit intomainfrom
sarlinpe/fix-nonzero
Jun 28, 2025
Merged

Replace incorrect call to nonZeros#3426
ahojnnes merged 1 commit intomainfrom
sarlinpe/fix-nonzero

Conversation

@sarlinpe
Copy link
Copy Markdown
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 B1ueber2y and ahojnnes 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