source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@constraint/double.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 231 bytes |
Line | |
---|---|
1 | function x = double(x); |
2 | %DOUBLE (Overloaded) |
3 | |
4 | % Author Johan Löfberg |
5 | % $Id: double.m,v 1.1 2005/04/29 16:28:03 joloef Exp $ |
6 | |
7 | x = double(x.Evaluated{1}); |
8 | |
9 | if issymmetric(x) |
10 | x = min(eig(x)) >= 0; |
11 | else |
12 | x = min(x(:)) >= 0; |
13 | end |
Note: See TracBrowser
for help on using the repository browser.