[arrayfire] 155/408: BUGFIX: conjg no longer errors out for real inputs

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11:43 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 fb2409778bf9b580d0999b7d3347b1b63fde34e9
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Thu Jul 16 10:00:09 2015 -0400

    BUGFIX: conjg no longer errors out for real inputs
---
 src/api/c/complex.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/c/complex.cpp b/src/api/c/complex.cpp
index 8bc7608..38e2e2e 100644
--- a/src/api/c/complex.cpp
+++ b/src/api/c/complex.cpp
@@ -152,7 +152,7 @@ af_err af_conjg(af_array *out, const af_array in)
         af_dtype type = info.getType();
 
         if (type != c32 && type != c64) {
-            AF_ERROR("Inputs to imag must be of complex type", AF_ERR_ARG);
+            return af_retain_array(out, in);
         }
 
         af_array res;

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