source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/@sdpvar/uminus.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 492 bytes
Line 
1function Y = uminus(Y)
2%UMINUS (overloaded)
3
4% Author Johan Löfberg
5% $Id: uminus.m,v 1.4 2006/01/26 13:44:13 joloef Exp $   
6
7if isa(Y,'blkvar')
8    Y = sdpvar(Y);
9end
10   
11switch Y.typeflag
12case {0,1,2,3,4}
13        Y.basis = -Y.basis;     
14    %case {1,3,4}
15        %error('Relational objects canot be manipulated')
16case 9
17    Y.extra.M = -Y.extra.M;
18    Y.extra.negated = ~Y.extra.negated;
19case 5
20        error('Cone object cannot be negated');
21otherwise
22end
23% Reset info about conic terms
24Y.conicinfo = [0 0];
25
26
Note: See TracBrowser for help on using the repository browser.