This is a static copy of a profile report

Home

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

Home

get_B>remove_zeros (Calls: 1, Time: 0.060 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
34
nr_B = length(B);
121870.054 s90.0%
39
flag(i) = false;
10.004 s6.0%
38
%         error
121870.001 s1.7%
36
for i = 1:nr_B
80720.000 s0.8%
37
if sum(B{i}(:)) == 0
80720.000 s0.5%
All other lines  0.001 s1.1%
Totals  0.060 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function14
Non-code lines (comments, blank lines)5
Code lines (lines that can run)9
Code lines that did run9
Code lines that did not run4
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
      1 
  31
function B = remove_zeros(B) 
< 0.001 
      1 
  32
 
< 0.001 
      1 
  33
% this removes trivial basis with all-zeros 
  0.054 
  12187 
  34
nr_B = length(B); 
  35 
flag = true(nr_B,1);
< 0.001 
   8072 
  36
for i = 1:nr_B 
< 0.001 
   8072 
  37
    if sum(B{i}(:)) == 0 
< 0.001 
  12187 
  38
%         error 
  0.004 
      1 
  39
       flag(i) = false; 
  40 
    end
< 0.001 
      1 
  41
end 
  42 
B = B(flag);
  43 

  44 
end

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