This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
114 | iptcheckinput(U, {'double'}, {... | 3442 | 1.001 s | 82.6% |  |
127 | D = S(1:N); | 3442 | 0.090 s | 7.4% |  |
123 | N = M - 1; % PROD(S(1:M-1)... | 3442 | 0.020 s | 1.7% |  |
117 | S = size(U); | 3442 | 0.020 s | 1.7% |  |
122 | elseif P == S(M) | 3442 | 0 s | 0% |  |
All other lines | | | 0.080 s | 6.6% |  |
Totals | | | 1.212 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
iptcheckinput | MEX-file | 3442 | 0.971 s | 80.2% |  |
Self time (built-ins, overhead, etc.) | | | 0.240 s | 19.8% |  |
Totals | | | 1.212 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 30 |
Non-code lines (comments, blank lines) | 9 |
Code lines (lines that can run) | 21 |
Code lines that did run | 8 |
Code lines that did not run | 13 |
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.