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

Add missed algorithm for clearing the sparse matrix cell #14

Closed
vkostyukov opened this issue Jan 25, 2013 · 0 comments
Closed

Add missed algorithm for clearing the sparse matrix cell #14

vkostyukov opened this issue Jan 25, 2013 · 0 comments

Comments

@vkostyukov
Copy link
Owner

It could be a 0 (zero) as parameter for matrix.set(). So, we have to remove the existed cell in this case.

Here is the right place to put the implementation

for (int jj = columnPointers[j]; jj < columnPointers[j + 1]; jj++) {
            if (rowIndices[jj] == i) {

                // TODO: if value is zero:
                // clear the value cell

                values[jj] = value;
                return;
            }
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant