[arrayfire] 30/34: Fix median test (again)

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun Sep 27 14:46:05 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch dfsg-clean
in repository arrayfire.

commit 3a92a6fbd9f1ec3b1f7a463f328ad0d082b7fca2
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date:   Fri Sep 25 16:03:46 2015 -0400

    Fix median test (again)
---
 test/median.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/median.cpp b/test/median.cpp
index 9f176dc..fcd0393 100644
--- a/test/median.cpp
+++ b/test/median.cpp
@@ -41,7 +41,7 @@ template<typename To, typename Ti, bool flat>
 void median0(int nx, int ny=1, int nz=1, int nw=1)
 {
     if (noDoubleTests<Ti>()) return;
-    array a = randu(nx, ny, nz, nw, (af::dtype)dtype_traits<Ti>::af_type);
+    array a = generateArray<Ti>(nx, ny, nz, nw);
     array sa = sort(a);
 
     Ti *h_sa = sa.host<Ti>();

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