diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-10-18 04:44:28 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-10-18 04:44:28 +0000 |
commit | 4590e9bba04cae1c989c7d16da3dffdffb375561 (patch) | |
tree | 87d25ab4d7b5fab436111cfa7467c674445884f8 /numpy/core/_internal.py | |
parent | 0e70085a1e01b853739ab7c8160ae05f6560db03 (diff) | |
download | numpy-4590e9bba04cae1c989c7d16da3dffdffb375561.tar.gz |
Fix so that reshape copies fewer times. Fix so that arr.ctypes.data returns the integer and arr.ctypes._as_parameter_ returns the c_void_p type
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r-- | numpy/core/_internal.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py index cc2afdbf4..fa46a918b 100644 --- a/numpy/core/_internal.py +++ b/numpy/core/_internal.py @@ -248,7 +248,7 @@ class _ctypes(object): return (obj*self._arr.ndim)(*self._arr.strides) def get_data(self): - return self._ctypes.c_void_p(self._data) + return self._data def get_shape(self): if self._zerod: @@ -261,7 +261,7 @@ class _ctypes(object): return (_getintp_ctype()*self._arr.ndim)(*self._arr.strides) def get_as_parameter(self): - return self._data + return self._ctypes.c_void_p(self._data) data = property(get_data, None, doc="c-types data") shape = property(get_shape, None, doc="c-types shape") |