source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@constraint/and.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 313 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function F = and(X,Y) |
2 | % Internal class for constraint list | |
3 | ||
4 | % Author Johan Löfberg | |
5 | % $Id: and.m,v 1.2 2004/07/19 13:54:35 johanl Exp $ | |
6 | ||
7 | if isa(X,'sdpvar') | |
8 | X = true(X); | |
9 | end | |
10 | if isa(Y,'sdpvar') | |
11 | Y = true(Y); | |
12 | end | |
13 | if isa(X,'constraint') | |
14 | X = set(X); | |
15 | end | |
16 | if isa(Y,'constraint') | |
17 | Y = set(Y); | |
18 | end | |
19 | ||
20 | F = X & Y; |
Note: See TracBrowser
for help on using the repository browser.