view symmetricPart.m @ 643:62147d8ce062 feature/d1_staggered

Add staggered-upwind operators by Ken and Ossian.
author Martin Almquist <malmquist@stanford.edu>
date Mon, 13 Nov 2017 11:49:08 -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