get_B>arrow_basis (Calls: 1, Time: 39.069 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 Name | Function Type | Calls |
get_B | function | 1 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
64 | function B = arrow_basis(B) | 1 | 32.661 s | 83.6% | |
77 | end | 1 | 6.340 s | 16.2% | |
72 | if orbit(1,i) ~= orbit(i,i) | 26 | 0.058 s | 0.1% | |
69 | % combine the elements in the ... | 1024 | 0.003 s | 0.0% | |
68 | 1 | 0.003 s | 0.0% | ||
All other lines | 0.003 s | 0.0% | |||
Totals | 39.069 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
get_B>B2orbit | subfunction | 1 | 32.659 s | 83.6% | |
get_B>orbit2B | subfunction | 1 | 5.865 s | 15.0% | |
Self time (built-ins, overhead, etc.) | 0.546 s | 1.4% | |||
Totals | 39.069 s | 100% |
Total lines in function | 19 |
Non-code lines (comments, blank lines) | 8 |
Code lines (lines that can run) | 11 |
Code lines that did run | 11 |
Code lines that did not run | 4 |
Coverage (did run/can run) | 100.00 % |
time | Calls | line | |
---|---|---|---|
32.661 | 1 | 64 | function B = arrow_basis(B) |
65 | |||
66 | % compress the basis into a more compact form for computational purpose | ||
< 0.001 | 1 | 67 | orbit = B2orbit(B); |
0.003 | 1 | 68 | |
0.003 | 1024 | 69 | % combine the elements in the basis according to arrow constraints Y_{0,i} = Y_{i,i} |
< 0.001 | 26 | 70 | m = length(orbit); |
< 0.001 | 26 | 71 | for i = 2:m |
0.058 | 26 | 72 | if orbit(1,i) ~= orbit(i,i) |
< 0.001 | 26 | 73 | min_idx = min(orbit(1,i),orbit(i,i)); |
< 0.001 | 1024 | 74 | max_idx = max(orbit(1,i),orbit(i,i)); |
75 | orbit(orbit == max_idx) = min_idx; | ||
76 | end | ||
6.340 | 1 | 77 | end |
78 | |||
0.001 | 1 | 79 | % decompress orbit into basis |
80 | B = orbit2B(orbit); | ||
81 | |||
82 | end |
Other subfunctions in this file are not included in this listing.