view symmetricPart.m @ 653:2351a7690e8a feature/d1_staggered

Clean up and improve comments in StaggeredVariable
author Martin Almquist <malmquist@stanford.edu>
date Mon, 04 Dec 2017 11:18:13 -0800
parents f8072bb8d1d1
children
line wrap: on
line source

% Returns the symmetric of A
function S = symmetricPart(A, tol)
    S = 1/2*(A + A');
end