cupyx.scipy.sparse.kronsum¶
- cupyx.scipy.sparse.kronsum(A, B, format=None)[source]¶
Kronecker sum of sparse matrices A and B.
Kronecker sum is the sum of two Kronecker products
kron(I_n, A) + kron(B, I_m)
, whereI_n
andI_m
are identity matrices.- Parameters
A (cupyx.scipy.sparse.spmatrix) – a sparse matrix.
B (cupyx.scipy.sparse.spmatrix) – a sparse matrix.
format (str) – the format of the returned sparse matrix.
- Returns
Generated sparse matrix with the specified
format
.- Return type
See also