This is a static copy of a profile report

Home

images/private/tform>checkCoordinates (3442 calls, 1.212 sec)
Generated 05-Nov-2014 07:52:46 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/private/tform.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
images/private/tformfunction3442
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
114
iptcheckinput(U, {'double'}, {...
34421.001 s82.6%
127
D = S(1:N);
34420.090 s7.4%
123
N = M - 1;     % PROD(S(1:M-1)...
34420.020 s1.7%
117
S = size(U);
34420.020 s1.7%
122
elseif P == S(M)
34420 s0%
All other lines  0.080 s6.6%
Totals  1.212 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
iptcheckinputMEX-file34420.971 s80.2%
Self time (built-ins, overhead, etc.)  0.240 s19.8%
Totals  1.212 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function30
Non-code lines (comments, blank lines)9
Code lines (lines that can run)21
Code lines that did run8
Code lines that did not run13
Coverage (did run/can run)38.10 %
Function listing
   time   calls  line
107 function [U, D] = checkCoordinates(f, P, U)
108
109 % Let U have (N + 1) dimensions after allowing for dropped or extraneous
110 % trailing singletons. Determine the sizes of the first N dimensions of
111 % U and return them in row vector D. P is the dimensionality of the
112 % input space.
113
1.00 3442 114 iptcheckinput(U, {'double'}, {'real','finite'}, f.name, 'U', 2);
115
3442 116 M = ndims(U);
0.02 3442 117 S = size(U);
118
3442 119 if S(M) > 1
3442 120 if P == 1;
121 N = M; % PROD(S) points in 1-D
3442 122 elseif P == S(M)
0.02 3442 123 N = M - 1; % PROD(S(1:M-1)) points in P-D
124 else
125 error(message('images:tform:ArraySizeTformMismatch', f.name, f.argname, f.ndims_in));
126 end
0.09 3442 127 D = S(1:N);
128 else % S == [S(1) 1]
129 if P == 1
130 D = S(1); % S(1) points in 1-D
131 elseif P == S(1)
132 D = 1; % 1 point in P-D
133 else
134 error(message('images:tform:ArraySizeTformMismatch', f.name, f.argname, f.ndims_in));
135 end
136 end

Other subfunctions in this file are not included in this listing.