source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/extras/@ndsdpvar/circshift.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 394 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function X = circshift(varargin) |
2 | % CIRCSHIFT (overloaded) | |
3 | ||
4 | % Author Johan Löfberg | |
5 | % $Id: circshift.m,v 1.1 2006/07/26 09:09:07 joloef Exp $ | |
6 | ||
7 | Y = varargin{1}; | |
8 | X = Y; | |
9 | X.basis = []; | |
10 | for i = 1:size(Y.basis,2) | |
11 | base = reshape(full(Y.basis(:,i)),X.dim); | |
12 | base = circshift(base,varargin{2:end}); | |
13 | X.basis = [X.basis sparse(base(:))]; | |
14 | end | |
15 | X.dim = size(base); | |
16 | X.conicinfo = [0 0]; | |
17 | X = clean(X); |
Note: See TracBrowser
for help on using the repository browser.