This is a static copy of a profile report

Home

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 NameFunction TypeCalls
circshiftfunction1040
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
66
isFinite  = all(isfinite(sh));
10400.011 s50.0%
83
end
10400 s0%
82
p(numDimsA) = 0;
10400 s0%
81
if (numel(p) < numDimsA)
10400 s0%
71
if ~(isFinite && isInt...
10400 s0%
All other lines  0.011 s50.0%
Totals  0.022 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function27
Non-code lines (comments, blank lines)12
Code lines (lines that can run)15
Code lines that did run12
Code lines that did not run3
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.