(*matrices)
Return the elementwise (aka Hadamard) product of matrices.

    Examples
    --------
    >>> from sympy.matrices import hadamard_product, MatrixSymbol
    >>> A = MatrixSymbol('A', 2, 3)
    >>> B = MatrixSymbol('B', 2, 3)
    >>> hadamard_product(A)
    A
    >>> hadamard_product(A, B)
    A.*B
    >>> hadamard_product(A, B)[0, 1]
    A[0, 1]*B[0, 1]
Return the elementwise (aka Hadamard) product of matrices.
Return the elementwise ( aka Hadamard ) product of matrices .
def hadamard_product(*matrices):
    """
    Return the elementwise (aka Hadamard) product of matrices.

    Examples
    --------
    >>> from sympy.matrices import hadamard_product, MatrixSymbol
    >>> A = MatrixSymbol('A', 2, 3)
    >>> B = MatrixSymbol('B', 2, 3)
    >>> hadamard_product(A)
    A
    >>> hadamard_product(A, B)
    A.*B
    >>> hadamard_product(A, B)[0, 1]
    A[0, 1]*B[0, 1]
    """
    if not matrices:
        raise TypeError("Empty Hadamard product is undefined")
    validate(*matrices)
    if len(matrices) == 1:
        return matrices[0]
    else:
        return HadamardProduct(*matrices).doit()
def hadamard_product ( * matrices ) : if not matrices : raise TypeError ( "Empty Hadamard product is undefined" ) validate ( * matrices ) if len ( matrices ) == 1 : return matrices [ 0 ] else : return HadamardProduct ( * matrices ) . doit ( )