From ef2274235d5ee856b92dfad5eb64091882794656 Mon Sep 17 00:00:00 2001 From: Jesus Recuerda Date: Fri, 7 Jun 2019 14:41:32 +0200 Subject: [PATCH] Fix issue with findNBestOccurrences distances array type in C bindings --- src/khiva/matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/khiva/matrix.cpp b/src/khiva/matrix.cpp index 715bbba..79fbae9 100644 --- a/src/khiva/matrix.cpp +++ b/src/khiva/matrix.cpp @@ -553,7 +553,7 @@ void findBestNOccurrences(af::array q, af::array t, long n, af::array &distances af::sort(sortedDistances, sortedIndexes, distancesGlobal); indexes = sortedIndexes(af::seq(n), af::span, af::span); - distances = sortedDistances(af::seq(n), af::span, af::span).as(t.type()); + distances = sortedDistances(af::seq(n), af::span, af::span); } void stomp(af::array ta, af::array tb, long m, af::array &profile, af::array &index) {