def force_F_ordered_symmetric(A):
if A.flags['<STR_LIT>']:<EOL><INDENT>return A<EOL><DEDENT>if A.flags['<STR_LIT>']:<EOL><INDENT>return A.T<EOL><DEDENT>else:<EOL><INDENT>return np.asfortranarray(A)<EOL><DEDENT>
return a F ordered version of A, assuming A is symmetric