@staticmethod
    def checkSymmetric(A, tol=10**-6, softCheck = False, arrayInfo = "?"):
        if type(A)==numpy.ndarray and ((A.T - A)**2).sum() > tol**2:
            return Parameter.whatToDo("A=" + arrayInfo + " is not a symmetric matrix, ||A.T - A||_F^2 = " + str(((A.T - A)**2).sum()), softCheck)
        elif scipy.sparse.issparse(A) and ((A.T - A).multiply(A.T - A)).sum() > tol**2:
            return Parameter.whatToDo("A=" + arrayInfo + " is not a symmetric matrix, ||A.T - A||_F^2 = " + str(((A.T - A).multiply(A.T - A)).sum()), softCheck)
        return True
Takes as input a matrix A and checks if it is symmetric by verifying whether
dataset/ETHPy150Open charanpald/APGL/apgl/util/Parameter.py/Parameter.checkSymmetric