changeset 51:18e7cd6ff057

medcouple.d: narrow computation of topN
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Sun, 15 May 2016 16:32:24 -0400
parents 4a669a51f49c
children 242afe8021b4
files medcouple.d
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/medcouple.d
+++ b/medcouple.d
@@ -44,7 +44,7 @@
 
   while(true) {
     auto mid = (beg+end)/2;
-    topN!((x, y) => x[0] > y[0])(AW, mid);
+    topN!((x, y) => x[0] > y[0])(AW[beg..end+1], mid);
 
     auto trial = AW[mid][0];