@@ -60,7 +60,12 @@ def cusparse_csr_matvec(
6060 the matrix vector product.
6161 """
6262 bl = tools .import_brainpylib ()
63- return bl .cusparse_csr_matvec (data , indices , indptr , vector , shape = shape , transpose = transpose )
63+ return bl .sparse_ops .cusparse_csr_matvec (data ,
64+ indices ,
65+ indptr ,
66+ vector ,
67+ shape = shape ,
68+ transpose = transpose )
6469
6570
6671def cusparse_coo_matvec (
@@ -107,14 +112,14 @@ def cusparse_coo_matvec(
107112 the matrix vector product.
108113 """
109114 bl = tools .import_brainpylib ()
110- return bl .cusparse_coo_matvec (data ,
111- row ,
112- col ,
113- vector ,
114- shape = shape ,
115- rows_sorted = rows_sorted ,
116- cols_sorted = cols_sorted ,
117- transpose = transpose )
115+ return bl .sparse_ops . cusparse_coo_matvec (data ,
116+ row ,
117+ col ,
118+ vector ,
119+ shape = shape ,
120+ rows_sorted = rows_sorted ,
121+ cols_sorted = cols_sorted ,
122+ transpose = transpose )
118123
119124
120125def csr_matvec (
@@ -144,9 +149,6 @@ def csr_matvec(
144149 and dtype ``data.dtype``.
145150 shape: tuple of int
146151 A length-2 tuple representing the matrix shape.
147- transpose: bool
148- A boolean specifying whether to transpose the sparse matrix
149- before computing.
150152 method: str
151153 The computing method used in GPU backend. Currently, we support
152154 `scalar`, `vector` and `adaptive`.
@@ -158,7 +160,7 @@ def csr_matvec(
158160 the matrix vector product.
159161 """
160162 bl = tools .import_brainpylib ()
161- return bl .csr_matvec (data , indices , indptr , vector , shape = shape )
163+ return bl .sparse_ops . csr_matvec (data , indices , indptr , vector , shape = shape , method = method )
162164
163165
164166def _matmul_with_left_sparse (
0 commit comments