[arrayfire] 93/408: Added noDoubleTest for nearest neighbour and dot test
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11:26 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.
commit 9d0983192d757f83a962d6a04b01323b7e956c9b
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Thu Jul 2 17:40:49 2015 -0400
Added noDoubleTest for nearest neighbour and dot test
---
test/dot.cpp | 2 ++
test/nearest_neighbour.cpp | 2 ++
2 files changed, 4 insertions(+)
diff --git a/test/dot.cpp b/test/dot.cpp
index e5a1550..a25f59f 100644
--- a/test/dot.cpp
+++ b/test/dot.cpp
@@ -47,6 +47,8 @@ template<typename T>
void dotTest(string pTestFile, const int resultIdx,
const af_mat_prop optLhs = AF_MAT_NONE, const af_mat_prop optRhs = AF_MAT_NONE)
{
+ if (noDoubleTests<T>()) return;
+
using af::dim4;
vector<dim4> numDims;
diff --git a/test/nearest_neighbour.cpp b/test/nearest_neighbour.cpp
index a405ad2..3ca166b 100644
--- a/test/nearest_neighbour.cpp
+++ b/test/nearest_neighbour.cpp
@@ -48,6 +48,8 @@ TYPED_TEST_CASE(NearestNeighbour, TestTypes);
template<typename T>
void nearestNeighbourTest(string pTestFile, int feat_dim, const af_match_type type)
{
+ if (noDoubleTests<T>()) return;
+
typedef typename otype_t<T>::otype To;
using af::dim4;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list