This is a static copy of a profile report

Home

Function details for find_index_phiZThis is a static copy of a profile report

Home

find_index_phiZ (Calls: 6, Time: 0.012 s)
Generated 19-Jun-2021 04:39:10 using performance time.
function in file /nfs/inm_phd/07/d07944009/2021/0618-proj6/simpleNN/MATLAB/cnn/find_index_phiZ.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
init_netfunction6
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
3
first_channel_idx = gpu([0:h-1...
60.006 s45.5%
7
column_offset = (gpu([0:a_out-...
60.003 s24.5%
8
idx = column_offset(:)' + firs...
60.002 s13.2%
4
first_col_idx = first_channel_...
60.001 s10.4%
9
idx = idx(:);
60.000 s1.7%
All other lines  0.001 s4.6%
Totals  0.012 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
gpufunction240.002 s13.6%
Self time (built-ins, overhead, etc.)  0.011 s86.4%
Totals  0.012 s100% 
Code Analyzer results
Line numberMessage
3If you intend to specify expression precedence, use parentheses () instead of brackets [].
3If you intend to specify expression precedence, use parentheses () instead of brackets [].
4If you intend to specify expression precedence, use parentheses () instead of brackets [].
7If you intend to specify expression precedence, use parentheses () instead of brackets [].
7If you intend to specify expression precedence, use parentheses () instead of brackets [].
Coverage results
Show coverage for parent directory
Total lines in function9
Non-code lines (comments, blank lines)2
Code lines (lines that can run)7
Code lines that did run7
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
   1 
function idx = find_index_phiZ(a, b, d, h, s)
   2 

  0.006 
      6 
   3
first_channel_idx = gpu([0:h-1]'*d+1) + gpu([0:h-1]*a*d); 
  0.001 
      6 
   4
first_col_idx = first_channel_idx(:) + [0:d-1]; 
< 0.001 
      6 
   5
a_out = floor((a - h)/s) + 1; 
< 0.001 
      6 
   6
b_out = floor((b - h)/s) + 1; 
  0.003 
      6 
   7
column_offset = (gpu([0:a_out-1])' + gpu([0:b_out-1]*a))*s*d; 
  0.002 
      6 
   8
idx = column_offset(:)' + first_col_idx(:); 
< 0.001 
      6 
   9
idx = idx(:); 

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