the symmetric part S = 0.5*(T + T') of a tensor
This function can also be used to fill NaN values to generate a symmetric tensor
S = sym(T)