Dynamic-Calibration/utils/YALMIP-master/@sdpvar/negatefactors.m

7 lines
151 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function X = negatefactors(X,L)
if ~isempty(X.midfactors)
for i = 1:length(X.midfactors)
X.leftfactors{i} = -X.leftfactors{i};
end
end