find_index_phiZ (Calls: 6, Time: 0.012 s)
Generated 19-Jun-2021 04:01:56 using performance time.
function in file /nfs/inm_phd/07/d07944009/2021/0618-proj6/simpleNN/MATLAB/cnn/find_index_phiZ.m
Copy to new window for comparing multiple runs
| Function Name | Function Type | Calls |
| init_net | function | 6 |
| Line Number | Code | Calls | Total Time | % Time | Time Plot |
| 3 | first_channel_idx = gpu([0:h-1... | 6 | 0.006 s | 45.3% | |
| 7 | column_offset = (gpu([0:a_out-... | 6 | 0.003 s | 24.5% | |
| 8 | idx = column_offset(:)' + firs... | 6 | 0.002 s | 12.7% | |
| 4 | first_col_idx = first_channel_... | 6 | 0.001 s | 10.7% | |
| 9 | idx = idx(:); | 6 | 0.000 s | 2.2% | |
| All other lines | 0.001 s | 4.6% | |||
| Totals | 0.012 s | 100% |
| Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
| gpu | function | 24 | 0.002 s | 13.6% | |
| Self time (built-ins, overhead, etc.) | 0.011 s | 86.4% | |||
| Totals | 0.012 s | 100% |
| Line number | Message |
| 3 | If you intend to specify expression precedence, use parentheses () instead of brackets []. |
| 3 | If you intend to specify expression precedence, use parentheses () instead of brackets []. |
| 4 | If you intend to specify expression precedence, use parentheses () instead of brackets []. |
| 7 | If you intend to specify expression precedence, use parentheses () instead of brackets []. |
| 7 | If you intend to specify expression precedence, use parentheses () instead of brackets []. |
| Total lines in function | 9 |
| Non-code lines (comments, blank lines) | 2 |
| Code lines (lines that can run) | 7 |
| Code lines that did run | 7 |
| Code lines that did not run | 0 |
| Coverage (did run/can run) | 100.00 % |
time | Calls | line | |
|---|---|---|---|
1 | function idx = find_index_phiZ(a, b, d, h, s) | ||
2 | |||
0.006 | 6 | 3 | first_channel_idx = gpu([0:h-1]'*d+1) + gpu([0:h-1]*a*d); |
0.001 | 6 | 4 | first_col_idx = first_channel_idx(:) + [0:d-1]; |
< 0.001 | 6 | 5 | a_out = floor((a - h)/s) + 1; |
< 0.001 | 6 | 6 | b_out = floor((b - h)/s) + 1; |
0.003 | 6 | 7 | column_offset = (gpu([0:a_out-1])' + gpu([0:b_out-1]*a))*s*d; |
0.002 | 6 | 8 | idx = column_offset(:)' + first_col_idx(:); |
< 0.001 | 6 | 9 | idx = idx(:); |
Other subfunctions in this file are not included in this listing.