source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@ndsdpvar/times.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 314 bytes |
Line | |
---|---|
1 | function F = times(X,Y) |
2 | % times (overloaded) |
3 | |
4 | % Author Johan Löfberg |
5 | % $Id: times.m,v 1.2 2006/07/28 06:27:01 joloef Exp $ |
6 | |
7 | if isa(X,'ndsdpvar') |
8 | dim = X.dim; |
9 | X = sdpvar(X); |
10 | else |
11 | X = X(:); |
12 | end |
13 | if isa(Y,'ndsdpvar') |
14 | dim = Y.dim; |
15 | Y = sdpvar(Y); |
16 | else |
17 | Y = Y(:); |
18 | end |
19 | |
20 | F = X.*Y; |
21 | F = reshape(F,dim); |
Note: See TracBrowser
for help on using the repository browser.