+
+
348 auto dim = (row ? p->
nrow() : p->
ncol());
+
349 auto otherdim = (row ? p->
ncol() : p->
nrow());
+
+
+
352 bool store_min = min_out != NULL;
+
353 bool store_max = max_out != NULL;
+
+
+
+
+
+
+
+
+
+
363 std::vector<Value_> vbuffer(otherdim);
+
364 for (Index_ x = 0; x < l; ++x) {
+
365 auto out = ext->fetch(vbuffer.data(), NULL);
+
+
367 min_out[x + s] = ranges::direct<true>(out.value, out.number, otherdim, ropt.
skip_nan);
+
+
+
370 max_out[x + s] = ranges::direct<false>(out.value, out.number, otherdim, ropt.
skip_nan);
+
+
+
+
+
+
+
+
378 std::vector<Value_> vbuffer(l);
+
379 std::vector<Index_> ibuffer(l);
-
381 for (Index_ x = 0; x < otherdim; ++x) {
-
382 auto out = ext->fetch(vbuffer.data(), ibuffer.data());
-
-
384 runmin.
add(out.value, out.index, out.number);
-
-
-
387 runmax.
add(out.value, out.index, out.number);
-
-
-
-
-
-
393 local_min.transfer();
+
+
+
+
+
+
386 for (Index_ x = 0; x < otherdim; ++x) {
+
387 auto out = ext->fetch(vbuffer.data(), ibuffer.data());
+
+
389 runmin.
add(out.value, out.index, out.number);
+
+
+
392 runmax.
add(out.value, out.index, out.number);
+
-
-
-
397 local_max.transfer();
-
-
-
-
-
-
-
-
-
406 std::vector<Value_> buffer(otherdim);
-
407 for (Index_ x = 0; x < l; ++x) {
-
408 auto ptr = ext->fetch(buffer.data());
-
-
410 min_out[x + s] = ranges::direct<true>(ptr, otherdim, ropt.
skip_nan);
-
-
-
413 max_out[x + s] = ranges::direct<false>(ptr, otherdim, ropt.
skip_nan);
-
-
-
-
-
-
-
-
421 std::vector<Value_> buffer(l);
+
+
+
+
398 local_min.transfer();
+
+
+
+
402 local_max.transfer();
+
+
+
+
+
+
+
+
+
411 std::vector<Value_> buffer(otherdim);
+
412 for (Index_ x = 0; x < l; ++x) {
+
413 auto ptr = ext->fetch(buffer.data());
+
+
415 min_out[x + s] = ranges::direct<true>(ptr, otherdim, ropt.
skip_nan);
+
+
+
418 max_out[x + s] = ranges::direct<false>(ptr, otherdim, ropt.
skip_nan);
+
+
+
-
-
-
-
+
+
+
+
426 std::vector<Value_> buffer(l);
-
428 for (Index_ x = 0; x < otherdim; ++x) {
-
429 auto ptr = ext->fetch(buffer.data());
-
-
-
-
-
-
-
-
-
-
-
440 local_min.transfer();
+
+
+
+
+
+
433 for (Index_ x = 0; x < otherdim; ++x) {
+
434 auto ptr = ext->fetch(buffer.data());
+
+
+
+
+
+
-
-
-
444 local_max.transfer();
-
-
-
-
-
-
-
+
+
+
+
445 local_min.transfer();
+
+
+
+
449 local_max.transfer();
+
+
+
+
+
+
+