view symmetricPart.m @ 1127:0aed89043ad6 feature/laplace_curvilinear_test

In LaplaceCurvilinear, use grid spacings from 1d opSets instead of using grid.scaling()
author Martin Almquist <malmquist@stanford.edu>
date Wed, 15 May 2019 16:55:02 -0700
parents f8072bb8d1d1
children
line wrap: on
line source

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