?? minus.m
字號:
function Z = minus(cx,P)
%display Overloaded
% Author Johan L鰂berg
% $Id: minus.m,v 1.2 2004/09/19 21:33:49 johanl Exp $
% Standard case c't-logdet(P)
if isa(P,'logdet') % sdpvr - logdet
if prod(size(cx))>1
error('Only scalar terms can be added to a logdet term');
end
if isa(cx,'logdet')
error('Logdet objects can only be added');
end
Z = P;
if isempty(P.cx)
Z.cx = cx;
else
Z.cx = cx-P.cx;
end
Z.gain = -Z.gain;
else % logdet - cx
temp = cx;
cx = P;
P = temp;
Z = P;
if isempty(P.cx)
Z.cx = -cx;
else
Z.cx = P.cx-cx;
end
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -