[python-arrayfire] 57/250: Add complex typecodes
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Mar 28 22:59:30 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 bff0ab5dde83466311eb45c25c4b009e07845771
Author: Filipe Maia <filipe.c.maia at gmail.com>
Date: Thu Aug 27 22:11:27 2015 +0200
Add complex typecodes
---
arrayfire/util.py | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/arrayfire/util.py b/arrayfire/util.py
index 93dac2e..a989915 100644
--- a/arrayfire/util.py
+++ b/arrayfire/util.py
@@ -59,7 +59,9 @@ to_dtype = {'f' : f32,
'i' : s32,
'I' : u32,
'l' : s64,
- 'L' : u64}
+ 'L' : u64,
+ 'F' : c32,
+ 'D' : c64}
to_typecode = {f32.value : 'f',
f64.value : 'd',
@@ -68,7 +70,9 @@ to_typecode = {f32.value : 'f',
s32.value : 'i',
u32.value : 'I',
s64.value : 'l',
- u64.value : 'L'}
+ u64.value : 'L',
+ c32.value : 'F',
+ c64.value : 'D'}
to_c_type = {f32.value : ct.c_float,
f64.value : ct.c_double,
@@ -77,4 +81,6 @@ to_c_type = {f32.value : ct.c_float,
s32.value : ct.c_int,
u32.value : ct.c_uint,
s64.value : ct.c_longlong,
- u64.value : ct.c_ulonglong}
+ u64.value : ct.c_ulonglong,
+ c32.value : ct.c_float * 2,
+ c64.value : ct.c_double * 2}
--
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