original_docstring: Computes the Kronecker product of a given list of matrices.
docstring: Computes the Kronecker product of a given list of matrices.
docstring_tokens: Computes the Kronecker product of a given list of matrices .
code: def kron_product(matrices: np.ndarray) -> np.ndarray:
      """Computes the Kronecker product of a given list of matrices."""
      if len(matrices) < 1:
          raise ValueError(
              "kron_product expects a list of matrices to compute Kronecker product."
          )
      return functools.reduce(lambda a, b: kron(a, b), matrices)
code_tokens: def kron_product ( matrices : np . ndarray ) -> np . ndarray : if len ( matrices ) < 1 : raise ValueError ( "kron_product expects a list of matrices to compute Kronecker product." ) return functools . reduce ( lambda a , b : kron ( a , b ) , matrices )
short_docstring: Computes the Kronecker product of a given list of matrices.
short_docstring_tokens: Computes the Kronecker product of a given list of matrices .
comment: """Computes the Kronecker product of a given list of matrices."""