[python-arrayfire] 72/250: Need to set the type of the constant array
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Mar 28 22:59:32 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/master
in repository python-arrayfire.
commit d3550989fa4590fade33c7a0da4d43e28b332c80
Author: Filipe Maia <filipe.c.maia at gmail.com>
Date: Fri Aug 28 15:26:39 2015 +0200
Need to set the type of the constant array
---
arrayfire/array.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arrayfire/array.py b/arrayfire/array.py
index d0128c3..7add8db 100644
--- a/arrayfire/array.py
+++ b/arrayfire/array.py
@@ -441,7 +441,7 @@ class Array(BaseArray):
if (is_number(val)):
tdims = get_assign_dims(key, self.dims())
- other_arr = constant_array(val, tdims[0], tdims[1], tdims[2], tdims[3])
+ other_arr = constant_array(val, tdims[0], tdims[1], tdims[2], tdims[3], self.type())
else:
other_arr = val.arr
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-arrayfire.git
More information about the debian-science-commits
mailing list