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.
Function Name | Function Type | Calls |
LiveEditorEvaluationHelperESectionEval | script | 1 |
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% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
get_B>arrow_basis | subfunction | 1 | 39.069 s | 65.5% | ![]() |
get_B>symmetrize_basis | subfunction | 1 | 20.435 s | 34.3% | ![]() |
get_B>remove_zeros | subfunction | 1 | 0.060 s | 0.1% | ![]() |
Self time (built-ins, overhead, etc.) | 0.091 s | 0.2% | ![]() | ||
Totals | 59.655 s | 100% |
Total 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 % |
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.