This is a static copy of a profile report Home
Function details for get_B This 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)
Lines where the most time was spent
Line Number Code Calls Total Time % Time Time Plot 16 B = symmetrize_basis(B); 1 39.071 s 65.5% 13 B = remove_zeros(B); 1 20.435 s 34.3% 6 % turn B from double to logica... 12187 0.087 s 0.1% 10 end 1 0.061 s 0.1% 7 B = cell(length(basis),1); 12187 0.001 s 0.0% All other lines 0.001 s 0.0% Totals 59.655 s 100%
Children (called functions)
Code Analyzer results No Code Analyzer messages.
Coverage results Show coverage for parent directoryTotal lines in function 26 Non-code lines (comments, blank lines) 15 Code lines (lines that can run) 11 Code lines that did run 8 Code lines that did not run 6 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.