def checkSymmetry(csr):
    """
    Checks whether a matrix in CSR sparse format is symmetric.
    
    Parameters
    ----------
    csr: matrix in CSR format
    
    Returns
    -------
    symyes: bool
        True if symmetric, False if not
    """

    symyes = not (csr!=csr.transpose()).max()
    return symyes