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

sparsifying of Matrix-Matrix product #68

Open
adamConnerSax opened this issue Aug 6, 2019 · 1 comment
Open

sparsifying of Matrix-Matrix product #68

adamConnerSax opened this issue Aug 6, 2019 · 1 comment

Comments

@adamConnerSax
Copy link

This may be more question than issue.

I understand why post-sparsifying might be the best route to making the matrix-matrix product sparse. But, in the regular product, why not leave out the elements that are sums of products all of which involve one structural zero? That is, if an element in the result comes from multiplying a row and column such that every product in that sum has at least one structural zero, why not leave that element out of the sparse product?

I got bitten by this because I assumed (my fault, I know!) that the sparse product would behave this way so I was ending up with dense matrices full of zeroes without realizing.

@GregorySchwartz
Copy link
Contributor

GregorySchwartz commented Aug 15, 2019

Are you assuming that there are dense 0s present in the matrix before the product? If so, it would make more sense to sparsify before the multiplication and then after (to account for negative + positive).

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

3 participants