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

21 lines
550 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function varargout = det_internal(varargin)
switch class(varargin{1})
case 'double'
X = varargin{1};
X = reshape(X,sqrt(length(X)),[]);
varargout{1} = det(X);
case 'char' % YALMIP send 'model' when it wants the epigraph or hypograph
operator = struct('convexity','none','monotonicity','none','definiteness','none','model','callback');
operator.range = [-inf inf];
varargout{1} = [];
varargout{2} = operator;
varargout{3} = varargin{3};
otherwise
end