This is a static copy of a profile reportHome
circshift>ParseInputs (1040 calls, 0.022 sec)
Generated 05-Aug-2011 13:03:51 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/elmat/circshift.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
circshift | function | 1040 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
66 | isFinite = all(isfinite(sh)); | 1040 | 0.011 s | 50.0% |  |
83 | end | 1040 | 0 s | 0% |  |
82 | p(numDimsA) = 0; | 1040 | 0 s | 0% |  |
81 | if (numel(p) < numDimsA) | 1040 | 0 s | 0% |  |
71 | if ~(isFinite && isInt... | 1040 | 0 s | 0% |  |
All other lines | | | 0.011 s | 50.0% |  |
Totals | | | 0.022 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 27 |
Non-code lines (comments, blank lines) | 12 |
Code lines (lines that can run) | 15 |
Code lines that did run | 12 |
Code lines that did not run | 3 |
Coverage (did run/can run) | 80.00 % |
Function listing
time calls line
57 function [p, sizeA, numDimsA, msg] = ParseInputs(a,p)
58
59 % default values
1040 60 sizeA = size(a);
1040 61 numDimsA = ndims(a);
1040 62 msg = '';
63
64 % Make sure that SHIFTSIZE input is a finite, real integer vector
1040 65 sh = p(:);
0.01 1040 66 isFinite = all(isfinite(sh));
1040 67 nonSparse = all(~issparse(sh));
1040 68 isInteger = all(isa(sh,'double') & (imag(sh)==0) & (sh==round(sh)));
1040 69 isVector = isvector(p);
70
1040 71 if ~(isFinite && isInteger && isVector && nonSparse)
72 msg = ['Invalid shift type: ' ...
73 'must be a finite, nonsparse, real integer vector.'];
74 return;
75 end
76
77 % Make sure the shift vector has the same length as numDimsA.
78 % The missing shift values are assumed to be 0. The extra
79 % shift values are ignored when the shift vector is longer
80 % than numDimsA.
1040 81 if (numel(p) < numDimsA)
1040 82 p(numDimsA) = 0;
1040 83 end
Other subfunctions in this file are not included in this listing.