source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@ncvar/conv.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 431 bytes |
Line | |
---|---|
1 | function Z=conv(X,Y) |
2 | %CONV (overloaded) |
3 | |
4 | % Author Johan Löfberg |
5 | % $Id: conv.m,v 1.1 2006/08/10 18:00:19 joloef Exp $ |
6 | |
7 | |
8 | x_lmi_variables = X.lmi_variables; |
9 | n = X.dim(1); |
10 | m = X.dim(2); |
11 | Z=X; |
12 | Z.basis=[]; |
13 | for i = 1:length(x_lmi_variables)+1 |
14 | x=reshape(X.basis(:,i),n,m); |
15 | z=conv(full(x),full(Y)); |
16 | Z.basis=[Z.basis z(:)]; |
17 | end |
18 | Z.dim(1) = size(z,1); |
19 | Z.dim(2) = size(z,2); |
20 | % Reset info about conic terms |
21 | Z.conicinfo = [0 0]; |
Note: See TracBrowser
for help on using the repository browser.