Skip to content

Adding Too Slow Compared to Scipy  #75

@turnersr

Description

@turnersr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions