comparison m-toolbox/classes/@matrix/ctranspose.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % CTRANSPOSE implements conjugate transpose operator for matrix objects.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: ctranspose implements conjugate transpose operator for a matrix object.
5 %
6 % CALL: obj = obj'
7 % obj = ctranspose(obj);
8 %
9 % <a href="matlab:utils.helper.displayMethodInfo('matrix', 'ctranspose')">Parameters Description</a>
10 %
11 % VERSION: $Id: ctranspose.m,v 1.7 2011/04/08 08:56:31 hewitson Exp $
12 %
13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14
15 function varargout = ctranspose(varargin)
16
17 % Check if this is a call for parameters
18 if utils.helper.isinfocall(varargin{:})
19 varargout{1} = getInfo(varargin{3});
20 return
21 end
22
23 if nargout == 0
24 transpose(varargin{:});
25 else
26 varargout{:} = transpose(varargin{:});
27 end
28 return
29
30 end
31
32 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
33 % Local Functions %
34 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
35
36 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
37 %
38 % FUNCTION: getInfo
39 %
40 % DESCRIPTION: Get Info Object
41 %
42 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
43
44 function ii = getInfo(varargin)
45
46 if nargin == 1 && strcmpi(varargin{1}, 'None')
47 sets = {};
48 pls = [];
49 else
50 sets = {'Default'};
51 pls = getDefaultPlist;
52 end
53 % Build info object
54 ii = minfo(mfilename, 'matrix', 'ltpda', utils.const.categories.aop, '$Id: ctranspose.m,v 1.7 2011/04/08 08:56:31 hewitson Exp $', sets, pls);
55
56 end
57
58 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
59 %
60 % FUNCTION: getDefaultPlist
61 %
62 % DESCRIPTION: Get Default Plist
63 %
64 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
65
66 function plout = getDefaultPlist()
67 persistent pl;
68 if exist('pl', 'var')==0 || isempty(pl)
69 pl = buildplist();
70 end
71 plout = pl;
72 end
73
74 function pl = buildplist()
75 pl = plist.EMPTY_PLIST;
76 end