def _scipy_sparse_tensor_product(*product):
    if not sparse:
        raise ImportError
    answer = product[0]
    for item in product[1:]:
        answer = sparse.kron(answer, item)
    # The final matrices will just be multiplied, so csr is a good final
    # sparse format.
    return sparse.csr_matrix(answer)
Initializer.
dataset/ETHPy150Open sympy/sympy/sympy/physics/quantum/matrixutils.py/_scipy_sparse_tensor_product--crossover with--dataset/ETHPy150Open ryan-roemer/django-cloud-browser/cloud_browser/cloud/fs.py/FilesystemConnection.__init__