CG>R_JTBJv (Calls: 72, Time: 975.116 s)
Generated 19-Jun-2021 04:01:57 using performance time.
subfunction in file /nfs/inm_phd/07/d07944009/2021/0618-proj6/simpleNN/MATLAB/opt/CG.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
CG | function | 72 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
125 | [Jv_, net] = Jv(data(:, range)... | 216 | 569.131 s | 58.4% | ![]() |
131 | JTv_ = JTv(model, net, BJv); | 216 | 400.799 s | 41.1% | ![]() |
135 | end | 216 | 4.990 s | 0.5% | ![]() |
134 | u = u + vertcat(JTv_{:}); | 216 | 0.081 s | 0.0% | ![]() |
133 | JTv_ = arrayfun(@(m) JTv_{m}(:... | 216 | 0.070 s | 0.0% | ![]() |
All other lines | 0.044 s | 0.0% | ![]() | ||
Totals | 975.116 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
Jv | function | 216 | 568.474 s | 58.3% | ![]() |
JTv | function | 216 | 400.788 s | 41.1% | ![]() |
gpu | function | 72 | 0.020 s | 0.0% | ![]() |
CG>@(m)JTv_{m}(:) | anonymous function | 864 | 0.008 s | 0.0% | ![]() |
Self time (built-ins, overhead, etc.) | 5.826 s | 0.6% | ![]() | ||
Totals | 975.116 s | 100% |
Line number | Message |
115 | The value assigned to variable 'LC' might be unused. |
133 | If you intend to specify expression precedence, use parentheses () instead of brackets []. |
Total lines in function | 24 |
Non-code lines (comments, blank lines) | 10 |
Code lines (lines that can run) | 14 |
Code lines that did run | 14 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
time | Calls | line | |
---|---|---|---|
112 | function u = R_JTBJv(data, param, model, net, v) | ||
113 | |||
< 0.001 | 72 | 114 | L = model.L; |
< 0.001 | 72 | 115 | LC = model.LC; |
< 0.001 | 72 | 116 | GNsize = size(data, 2); |
0.001 | 72 | 117 | n = model.var_ptr(end) - 1; |
0.026 | 72 | 118 | u = gpu(@zeros, [n, 1]); |
119 | |||
< 0.001 | 72 | 120 | bsize = param.bsize; |
< 0.001 | 72 | 121 | for i = 1 : ceil(GNsize/bsize) |
0.004 | 216 | 122 | range = (i-1)*bsize + 1 : min(GNsize, i*bsize); |
123 | |||
124 | % Jv | ||
569.131 | 216 | 125 | [Jv_, net] = Jv(data(:, range), model, net, v); |
126 | |||
127 | % BJv | ||
0.007 | 216 | 128 | BJv = 2*Jv_; |
129 | |||
130 | % JT(BJv) | ||
400.799 | 216 | 131 | JTv_ = JTv(model, net, BJv); |
132 | |||
0.070 | 216 | 133 | JTv_ = arrayfun(@(m) JTv_{m}(:), [1 : L], 'un', 0); |
0.081 | 216 | 134 | u = u + vertcat(JTv_{:}); |
4.990 | 216 | 135 | end |
Other subfunctions in this file are not included in this listing.