source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/opt/yalmip/@sdpvar/ctranspose.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 424 bytes |
Line | |
---|---|
1 | function X=ctranspose(X) |
2 | %CTRANSPOSE (overloaded) |
3 | |
4 | % Author Johan Löfberg |
5 | % $Id: ctranspose.m,v 1.6 2006/07/26 20:17:57 joloef Exp $ |
6 | |
7 | if isa(X,'blkvar') |
8 | X = sdpvar(X); |
9 | end |
10 | |
11 | n = X.dim(1); |
12 | m = X.dim(2); |
13 | ind = reshape(reshape(1:n*m,n,m)',n*m,1); |
14 | if isreal(X.basis) |
15 | X.basis = X.basis(ind,:); |
16 | else |
17 | X.basis = conj(X.basis(ind,:)); |
18 | end |
19 | X.dim(1) = m; |
20 | X.dim(2) = n; |
21 | % Reset info about conic terms |
22 | X.conicinfo = [0 0]; |
Note: See TracBrowser
for help on using the repository browser.