This is a static copy of a profile reportHome
circshift>ParseInputs (1216653 calls, 73.402 sec)
Generated 05-Nov-2014 07:53:54 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/matlab/elmat/circshift.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
circshift | function | 1216653 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
66 | isInteger = all(isa(sh,'double... | 1216653 | 11.486 s | 15.6% |  |
64 | isFinite = all(isfinite(sh)); | 1216653 | 10.975 s | 15.0% |  |
78 | if (numel(p) < numDimsA) | 1216653 | 7.090 s | 9.7% |  |
59 | sizeA = size(a); | 1216653 | 6.799 s | 9.3% |  |
65 | nonSparse = all(~issparse(sh))... | 1216653 | 6.108 s | 8.3% |  |
All other lines | | | 30.943 s | 42.2% |  |
Totals | | | 73.402 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 25 |
Non-code lines (comments, blank lines) | 12 |
Code lines (lines that can run) | 13 |
Code lines that did run | 9 |
Code lines that did not run | 4 |
Coverage (did run/can run) | 69.23 % |
Function listing
time calls line
56 function [p, sizeA, numDimsA] = ParseInputs(a,p)
57
58 % default values
6.80 1216653 59 sizeA = size(a);
3.58 1216653 60 numDimsA = ndims(a);
61
62 % Make sure that SHIFTSIZE input is a finite, real integer vector
4.19 1216653 63 sh = p(:);
10.98 1216653 64 isFinite = all(isfinite(sh));
6.11 1216653 65 nonSparse = all(~issparse(sh));
11.49 1216653 66 isInteger = all(isa(sh,'double') & (imag(sh)==0) & (sh==round(sh)));
4.13 1216653 67 isVector = isvector(p);
68
69 % Error out if ParseInputs discovers an improper SHIFTSIZE input
4.15 1216653 70 if ~(isFinite && isInteger && isVector && nonSparse)
71 error(message('MATLAB:circshift:InvalidShiftType'));
72 end
73
74 % Make sure the shift vector has the same length as numDimsA.
75 % The missing shift values are assumed to be 0. The extra
76 % shift values are ignored when the shift vector is longer
77 % than numDimsA.
7.09 1216653 78 if (numel(p) < numDimsA)
79 p(numDimsA) = 0;
80 end
Other subfunctions in this file are not included in this listing.