This is a static copy of a profile report

Home

Function details for CG>R_JTBJvThis is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
CGfunction72
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
125
[Jv_, net] = Jv(data(:, range)...
216569.131 s58.4%
131
JTv_ = JTv(model, net, BJv);
216400.799 s41.1%
135
end
2164.990 s0.5%
134
u = u + vertcat(JTv_{:});
2160.081 s0.0%
133
JTv_ = arrayfun(@(m) JTv_{m}(:...
2160.070 s0.0%
All other lines  0.044 s0.0%
Totals  975.116 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
Jvfunction216568.474 s58.3%
JTvfunction216400.788 s41.1%
gpufunction720.020 s0.0%
CG>@(m)JTv_{m}(:)anonymous function8640.008 s0.0%
Self time (built-ins, overhead, etc.)  5.826 s0.6%
Totals  975.116 s100% 
Code Analyzer results
Line numberMessage
115The value assigned to variable 'LC' might be unused.
133If you intend to specify expression precedence, use parentheses () instead of brackets [].
Coverage results
Show coverage for parent directory
Total lines in function24
Non-code lines (comments, blank lines)10
Code lines (lines that can run)14
Code lines that did run14
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
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.