view symmetricPart.m @ 1000:bd54cb25d96b feature/getBoundaryOp

Merge with default
author Martin Almquist <malmquist@stanford.edu>
date Mon, 14 Jan 2019 11:12:42 -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