This is a static copy of a profile report

Home

Function details for RandStream.RandStream>RandStream.algNameThis is a static copy of a profile report

Home

RandStream.RandStream>RandStream.algName (Calls: 1, Time: 0.001 s)
Generated 28-Jul-2019 11:53:06 using performance time.
class method in file C:\Program Files\MATLAB\R2019a\toolbox\matlab\randfun\@RandStream\RandStream.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...m.RandStream>RandStream.RandStreamclass method1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
740
i = find(strcmpi(name,RandStre...
10.000 s48.4%
730
if strcmpi(name,'v4uniform') |...
10.000 s0.6%
746
end
10.000 s0.3%
734
elseif strcmpi(name, 'legacy')
10.000 s0.1%
741
if isscalar(i)
10.000 s0.1%
All other lines  0.000 s50.6%
Totals  0.001 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function18
Non-code lines (comments, blank lines)7
Code lines (lines that can run)11
Code lines that did run7
Code lines that did not run4
Coverage (did run/can run)63.64 %
Function listing
time 
Calls 
 line
 729 
        function name = algName(name)
< 0.001 
      1 
 730
            if strcmpi(name,'v4uniform') || strcmpi(name,'v4normal') 
 731 
                % Be forgiving and accept v4uniform and v4normal, but do not
 732 
                % accept v5 by itself.
 733 
                name = 'v4';
< 0.001 
      1 
 734
            elseif strcmpi(name, 'legacy') 
 735 
                error(message('MATLAB:RandStream:CantCreateLegacy'));
 736 
            end
 737 
            
 738 
            % Convert friendly names to real algorithm names.  Do not allow
 739 
            % partial match, to prevent potential conflict with new generators.
< 0.001 
      1 
 740
            i = find(strcmpi(name,RandStream.CompatNames)); 
< 0.001 
      1 
 741
            if isscalar(i) 
 742 
                name = RandStream.BuiltinTypes{i};
      1 
 743
            else % isempty(i) 
 744 
                % Assume it's an algorithm name
      1 
 745
            end 
< 0.001 
      1 
 746
        end 

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