This is a static copy of a profile report

Home

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

Home

get_blkdiag (Calls: 3759, Time: 360.439 s)
Generated 20-Jul-2018 02:24:59 using performance time.
function in file C:\Users\yz\Dropbox\Workspace\Researches\PhD Research\My Papers\2018_symmtry_reduction\18groupsymmetrySDPSlaterHaoRenata.d\codesgroupsymmetrySDPSlaterHaoRenata.d\admm\1group_scripts\get_blkdiag.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
get_QBQfunction3757
qap_admm_blkdiagfunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
8
A = Q'*A*Q;                   ...
3759258.937 s71.8%
9
A = (A+A')/2;                 ...
375938.128 s10.6%
11
A(abs(A)<tol) = 0;         ...
375932.404 s9.0%
10
A(~block_pattern) = 0;        ...
375930.891 s8.6%
13
end
37590.021 s0.0%
All other lines  0.058 s0.0%
Totals  360.439 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function13
Non-code lines (comments, blank lines)8
Code lines (lines that can run)5
Code lines that did run5
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
   1 
function A = get_blkdiag(A,Q,block_pattern,tol)
   2 
% assume A belongs to the *-algebra G, and U is an orthogonal matrix such
   3 
% that U'MU is a block-diagonal matrix for every M in G
   4 

   5 
% this function computes U'AU and remove the small entires whose absolute
   6 
% value is less than tol, and entries not in block_pattern
   7 

 258.937 
   3759 
   8
A = Q'*A*Q;                   % exposing vector for symmetry reduced program 
 38.128 
   3759 
   9
A = (A+A')/2;                 % symmetrize Wbar 
 30.891 
   3759 
  10
A(~block_pattern) = 0;        % remove the zero-entries based on block-pattern 
 32.404 
   3759 
  11
A(abs(A)<tol) = 0;          % remove the small entries (important) 
  12 
   
  0.021 
   3759 
  13
end