This is a static copy of a profile report

Home

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

Home

RandStream.RandStream>RandStream.getGlobalStream (Calls: 1, Time: 0.006 s)
Generated 19-Jun-2021 04:39:04 using performance time.
class method in file /nfs/linux/matlab-2019b/toolbox/matlab/randfun/@RandStream/RandStream.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
rng>getCurrentTypesubfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
446
stream = localGetSetGlobalStre...
10.006 s99.8%
447
end
10.000 s0.1%
All other lines  0.000 s0.2%
Totals  0.006 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
...RandStream>localGetSetGlobalStreamclass method10.006 s98.3%
Self time (built-ins, overhead, etc.)  0.000 s1.7%
Totals  0.006 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function21
Non-code lines (comments, blank lines)19
Code lines (lines that can run)2
Code lines that did run2
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
 427 
        function stream = getGlobalStream
 428 
%RANDSTREAM.GETGLOBALSTREAM Get the current global random number stream.
 429 
%   STREAM = RandStream.GETGLOBALSTREAM returns the current global random
 430 
%   number stream, i.e., the stream that the RAND, RANDI, and RANDN functions
 431 
%   draw values from.
 432 
%
 433 
%   RAND, RANDI, and RANDN all rely on the same stream of uniform pseudorandom
 434 
%   numbers, known as the global random number stream.  RAND draws one value
 435 
%   from that stream to generate each uniform value it returns;  RANDI draws
 436 
%   one uniform value from that stream to generate each integer value it
 437 
%   return; and RANDN draws one or more uniform values to generate each normal
 438 
%   value it returns.  Note that there are also RAND, RANDI, and RANDN methods
 439 
%   for which you specify a specific random stream from which to draw values.
 440 
%
 441 
%   The RNG function is a shorter alternative for many uses of
 442 
%   RANDSTREAM.getGlobalStream.
 443 
%
 444 
%   See also RNG, RANDSTREAM, RANDSTREAM.SETGLOBALSTREAM,
 445 
%            RANDFUN/RAND, RANDFUN/RANDN, RANDFUN/RANDI.
  0.006 
      1 
 446
            stream = localGetSetGlobalStream(); 
< 0.001 
      1 
 447
        end 

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