cupyx.scipy.sparse.kron#

cupyx.scipy.sparse.kron(A, B, format=None)[source]#

Kronecker product of sparse arrays/matrices A and B.

Parameters:
  • A (cupyx.scipy.sparse) – a sparse object.

  • B (cupyx.scipy.sparse) – a sparse object.

  • format (str) – the format of the returned sparse object.

Returns:

Generated sparse object with the specified format. Returns a sparse array when any input is a sparse array, else a sparse matrix (matches scipy).

Return type:

cupyx.scipy.sparse