This is a static copy of a profile report

Home

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

Home

get_B (Calls: 1, Time: 59.655 s)
Generated 20-Jul-2018 02:24:58 using performance time.
function 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
LiveEditorEvaluationHelperESectionEvalscript1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
16
B = symmetrize_basis(B);
139.071 s65.5%
13
B = remove_zeros(B);
120.435 s34.3%
6
% turn B from double to logica...
121870.087 s0.1%
10
end
10.061 s0.1%
7
B = cell(length(basis),1);
121870.001 s0.0%
All other lines  0.001 s0.0%
Totals  59.655 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
get_B>arrow_basissubfunction139.069 s65.5%
get_B>symmetrize_basissubfunction120.435 s34.3%
get_B>remove_zerossubfunction10.060 s0.1%
Self time (built-ins, overhead, etc.)  0.091 s0.2%
Totals  59.655 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function26
Non-code lines (comments, blank lines)15
Code lines (lines that can run)11
Code lines that did run8
Code lines that did not run6
Coverage (did run/can run)72.73 %
Function listing
time 
Calls 
 line
   1 
function B = get_B(basis)
   2 

   3 
tic;
< 0.001 
      1 
   4
fprintf('get_B ') 
< 0.001 
      1 
   5
 
  0.087 
  12187 
   6
% turn B from double to logical 
< 0.001 
  12187 
   7
B = cell(length(basis),1); 
   8 
for i = 1:length(basis)
   9 
    B{i} = logical(basis{i});
  0.061 
      1 
  10
end 
  11 

  12 
% this removes trivial basis with all-zeros
 20.435 
      1 
  13
B = remove_zeros(B); 
  14 

  15 
% merge the elements in the basis by symmetry
 39.071 
      1 
  16
B = symmetrize_basis(B); 
  17 

  18 
% merge the elements in the basis by arrow-constraints
  19 
B = arrow_basis(B);
  20 

  21 
% % remove the element in the basis that is supposed to be zeros
  22 
% if nargin > 1
< 0.001 
      1 
  23
%     idx = orbit(Z); 
  24 
% end
  25 
fprintf('  %g \n', toc)
  26 
end

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