Quanlse/Utils/Functions.py
def isSquare(m: ndarray) -> bool:
        """
        This function is used to check whether the matrix is a square matrix
        :param m: input matrix
        :return: a bool value
        """
        return all(len(row) == len(m) for row in m)

        This function is used to check whether the matrix is a square matrix
        :param m: input matrix
        :return: a bool value
        
This function is used to check whether the matrix is a square matrix
This function is used to check whether the matrix is a square matrix
def isSquare(m: ndarray) -> bool:
        return all(len(row) == len(m) for row in m)
def isSquare ( m : ndarray ) -> bool : return all ( len ( row ) == len ( m ) for row in m )
This function is used to check whether the matrix is a square matrix
This function is used to check whether the matrix is a square matrix
"""
        This function is used to check whether the matrix is a square matrix
        :param m: input matrix
        :return: a bool value
        """
a bool value
a bool value
m
ndarray
None