Dynamic-Calibration/utils/YALMIP-master/extras/isessentiallyhermitian.m

13 lines
215 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function isherm=isessentiallyhermitian(X)
%ISHERMITIAN Check if variable is essentially Hermitian
[n,m] = size(X);
issym = 0;
if (n==m)
isherm = norm(X-X',1)<1e-10; % Should be scaled with size maybe
end