annotate symmetricPart.m @ 939:46f5dc61d90b feature/utux2D

Update Schrodinger2d to work with new interface types, similar to LaplCurv.
author Martin Almquist <malmquist@stanford.edu>
date Tue, 04 Dec 2018 14:25:03 -0800
parents f8072bb8d1d1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
574
f8072bb8d1d1 Add functions for symmetric and skew parts of matrix
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
1 % Returns the symmetric of A
f8072bb8d1d1 Add functions for symmetric and skew parts of matrix
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
2 function S = symmetricPart(A, tol)
f8072bb8d1d1 Add functions for symmetric and skew parts of matrix
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
3 S = 1/2*(A + A');
f8072bb8d1d1 Add functions for symmetric and skew parts of matrix
Jonatan Werpers <jonatan@werpers.com>
parents:
diff changeset
4 end