This is a static copy of a profile report

Home

Function details for get_B>arrow_basisThis is a static copy of a profile report

Home

get_B>arrow_basis (Calls: 1, Time: 39.069 s)
Generated 20-Jul-2018 02:24:58 using performance time.
subfunction in file C:\Users\yz\Dropbox\Workspace\Researches\PhD Research\My Papers\2018_symmtry_reduction\18groupsymmetrySDPSlaterHaoRenata.d\codesgroupsymmetrySDPSlaterHaoRenata.d\qap\sub-routines\get_B.m
Copy to new window for comparing multiple runs

This function changed during profiling or before generation of this report. Results may be incomplete or inaccurate.

Parents (calling functions)

Function NameFunction TypeCalls
get_Bfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
64
function B = arrow_basis(B)
132.661 s83.6%
77
end
16.340 s16.2%
72
if orbit(1,i) ~= orbit(i,i)
260.058 s0.1%
69
% combine the elements in the ...
10240.003 s0.0%
68
10.003 s0.0%
All other lines  0.003 s0.0%
Totals  39.069 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
get_B>B2orbitsubfunction132.659 s83.6%
get_B>orbit2Bsubfunction15.865 s15.0%
Self time (built-ins, overhead, etc.)  0.546 s1.4%
Totals  39.069 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function19
Non-code lines (comments, blank lines)8
Code lines (lines that can run)11
Code lines that did run11
Code lines that did not run4
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
 32.661 
      1 
  64
function B = arrow_basis(B) 
  65 

  66 
% compress the basis into a more compact form for computational purpose
< 0.001 
      1 
  67
orbit = B2orbit(B); 
  0.003 
      1 
  68
 
  0.003 
   1024 
  69
% combine the elements in the basis according to arrow constraints Y_{0,i} = Y_{i,i} 
< 0.001 
     26 
  70
m = length(orbit); 
< 0.001 
     26 
  71
for i = 2:m 
  0.058 
     26 
  72
    if orbit(1,i) ~= orbit(i,i) 
< 0.001 
     26 
  73
        min_idx = min(orbit(1,i),orbit(i,i)); 
< 0.001 
   1024 
  74
        max_idx = max(orbit(1,i),orbit(i,i)); 
  75 
        orbit(orbit == max_idx) = min_idx;
  76 
    end
  6.340 
      1 
  77
end 
  78 

  0.001 
      1 
  79
% decompress orbit into basis 
  80 
B = orbit2B(orbit);
  81 

  82 
end

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