[arrayfire] 346/408: TEST: updating SVD tests to contain all four floating point data types

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:27 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 083f6b869caf770119eec3ef0d03cc21297f6c95
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Tue Aug 25 08:37:27 2015 -0400

    TEST: updating SVD tests to contain all four floating point data types
---
 test/svd_dense.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/svd_dense.cpp b/test/svd_dense.cpp
index ec81e99..a5bf2dd 100644
--- a/test/svd_dense.cpp
+++ b/test/svd_dense.cpp
@@ -30,7 +30,7 @@ class svd : public ::testing::Test
 {
 };
 
-typedef ::testing::Types<float> TestTypes;
+typedef ::testing::Types<float, double, cfloat, cdouble> TestTypes;
 TYPED_TEST_CASE(svd, TestTypes);
 
 template<typename T>
@@ -52,6 +52,9 @@ template<> double get_val<cdouble>(cdouble val)
 template<typename T>
 void svdTest(const int M, const int N)
 {
+
+    if (noDoubleTests<T>()) return;
+
     af::dtype ty = (af::dtype)af::dtype_traits<T>::af_type;
 
     af::array A = af::randu(M, N, ty);

-- 
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