[arrayfire] 98/408: BUGFIX: Making sure c32/c64 imitate f32/f64 when operating with scalars

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11: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 bb7bb77899612bba523ffb5f88d1936034affbd0
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Thu Jul 2 19:30:46 2015 -0400

    BUGFIX: Making sure c32/c64 imitate f32/f64 when operating with scalars
---
 src/api/cpp/array.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/api/cpp/array.cpp b/src/api/cpp/array.cpp
index 2891e69..036db49 100644
--- a/src/api/cpp/array.cpp
+++ b/src/api/cpp/array.cpp
@@ -847,17 +847,17 @@ namespace af
     {                                                           \
         af_array out;                                           \
         af::dtype ty = plhs.type();                             \
-        af::dtype cty = plhs.isrealfloating() ? ty : dty;       \
+        af::dtype cty = plhs.isfloating() ? ty : dty;           \
         array cst = constant(value, plhs.dims(), cty);          \
         AF_THROW(func(&out, plhs.get(), cst.get(), gforGet())); \
         return array(out);                                      \
     }                                                           \
     array operator OP(const TY &value, const array &other)      \
     {                                                           \
-        const af_array rhs = other.get();                         \
+        const af_array rhs = other.get();                       \
         af_array out;                                           \
         af::dtype ty = other.type();                            \
-        af::dtype cty = other.isrealfloating() ? ty : dty;      \
+        af::dtype cty = other.isfloating() ? ty : dty;          \
         array cst = constant(value, other.dims(), cty);         \
         AF_THROW(func(&out, cst.get(), rhs, gforGet()));        \
         return array(out);                                      \

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