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

Adding Too Slow Compared to Scipy #75

Open
turnersr opened this issue Nov 5, 2020 · 0 comments
Open

Adding Too Slow Compared to Scipy #75

turnersr opened this issue Nov 5, 2020 · 0 comments

Comments

@turnersr
Copy link

turnersr commented Nov 5, 2020

Hello,

I am trying to rewrite the following Sparse Scipy code in GraphBlas:

from scipy.sparse import csc_matrix


G = csc_matrix((50000, 50000))
H = csc_matrix((50000, 50000))

H[0,0] = 3.3

G + H

But I notice a very significant slowdown with the following GraphBlas code.

from pygraphblas import *

Q = Matrix.sparse(FP64, 50000, 50000)

V = Matrix.sparse(FP64, 50000, 50000)

Q[0, 0] = 3.3

C = Q + V

Am I doing something wrong? Thank you for your help. For what it's worth, the @ operation is much faster.

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

No branches or pull requests

1 participant