source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@ndsdpvar/mtimes.m @ 37

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

Added original make3d

File size: 686 bytes
Line 
1function F = mtimes(X,Y)
2% mtimes (overloaded)
3
4% Author Johan Löfberg
5% $Id: mtimes.m,v 1.2 2006/07/25 12:57:08 joloef Exp $
6
7Xd = isa(X,'ndsdpvar');
8Yd = isa(Y,'ndsdpvar');
9
10if Xd & Yd
11    error('nD SDPVAR objects can not be multiplied');
12end
13
14if ~Xd
15    if isa(X,'double')
16        if prod(size(X)) == 1
17            F = Y;
18            F.basis = F.basis*X;
19        else
20            error('Only scalar multiplication allowed on nD objects');
21        end
22    end
23end
24
25if ~Yd
26    if isa(Y,'double')
27        if prod(size(Y)) == 1
28            F = X;
29            F.basis = F.basis*Y;
30        else
31            error('Only scalar multiplication allowed on nD objects');
32        end
33    end
34end
Note: See TracBrowser for help on using the repository browser.