Skip to content

Conversation

@Baunsgaard
Copy link
Contributor

I had an issue when reusing sparseRowVectors, where the maximum number of non zeros in a Sparse Row is set to the number of columns for the parent SparseMCSR Block. But when reusing the rows in allocations of append with other sparse blocks some edge cases increased the number of non zero values above the number of columns in the original matrix.

to fix this i made a few changes inside the Sparse CSR blocks, and while at it made an mini optimization of the posFIndexGTE(int r, int c), method to reduce the number of if statements improving overall performance.

I had an issue when reusing sparseRowVectors, where the maximum number
of non zeros in a Sparse Row is set to the number of columns for the
parent SparseMCSR Block. But when reusing the rows in allocations of
append with other sparse blocks some edge cases increased the number
of non zero values above the number of columns in the original matrix.

to fix this i made a few changes inside the Sparse CSR blocks, and while
at it made an mini optimization of the posFIndexGTE(int r, int c), method
to reduce the number of if statements improving overall performance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant