18 lines
617 B
Plaintext
Executable File
18 lines
617 B
Plaintext
Executable File
float** BENCH = sin->BENCH.getEntryValue(0);
|
|
int bots_arg_size = sin->bots_arg_size.getValue();
|
|
int kk = sin->kk.getValue();
|
|
int tmax = sin->tmax.getValue();
|
|
int t = sin->tindex.getValue();
|
|
int itercount = bots_arg_size - (kk+1);
|
|
int iterslice = itercount / (tmax+1);
|
|
int start = kk+1 + iterslice*t;
|
|
int stop = kk+1 + iterslice*(t+1);
|
|
if (t == tmax-1 && stop != bots_arg_size) {
|
|
stop = bots_arg_size;
|
|
}
|
|
for (int ii=start; ii<stop; ii++) {
|
|
if (BENCH[ii*bots_arg_size+kk] != NULL) {
|
|
bdiv (BENCH[kk*bots_arg_size+kk], BENCH[ii*bots_arg_size+kk]);
|
|
}
|
|
}
|
|
sout->BENCHout.setValue(BENCH); |