Thomas Heller wrote:
Thomas Heller schrieb:
Sturla Molden schrieb:
On 3/26/2009 12:41 PM, Jens Rantil wrote:
Wouldn't my code, or a tweak of it, be a nice feature in
numpy.ctypeslib? Is this the wrong channel for proposing things like
this?
If you look at
Thomas Heller schrieb:
Sturla Molden schrieb:
On 3/26/2009 12:41 PM, Jens Rantil wrote:
Wouldn't my code, or a tweak of it, be a nice feature in
numpy.ctypeslib? Is this the wrong channel for proposing things like
this?
If you look at
Sturla Molden schrieb:
On 3/26/2009 12:41 PM, Jens Rantil wrote:
Wouldn't my code, or a tweak of it, be a nice feature in
numpy.ctypeslib? Is this the wrong channel for proposing things like
this?
If you look at
http://svn.scipy.org/svn/numpy/trunk/numpy/ctypeslib.py
you will
Hi again,
On Mon, 2009-03-23 at 14:36 +0100, Jens Rantil wrote:
So I have a C-function in a DLL loaded through ctypes. This particular
function returns a pointer to a double. In fact I know that this
pointer points to the first element in an array of, say for
simplicity, 200 elements.
How
Sturla Molden schrieb:
On 3/26/2009 12:41 PM, Jens Rantil wrote:
Wouldn't my code, or a tweak of it, be a nice feature in
numpy.ctypeslib? Is this the wrong channel for proposing things like
this?
If you look at
http://svn.scipy.org/svn/numpy/trunk/numpy/ctypeslib.py
you will
On Mon, 2009-03-23 at 15:40 +0100, Sturla Molden wrote:
def fromaddress(address, nbytes, dtype=double):
class Dummy(object): pass
d = Dummy()
d.__array_interface__ = {
'data' : (address, False),
'typestr' : numpy.uint8.str,
'descr' : numpy.uint8.descr,
Jens Rantil wrote:
Thanks Sturla. However numpy.uint8 seem to be lacking attributes 'str'
and 'descr'. I'm using installed Ubuntu package 1:1.1.1-1. Is it too old
or is the code broken?
Oops, my fault :)
def fromaddress(address, nbytes, dtype=float):
class Dummy(object): pass
d =
On 23/03/09 15:40, Sturla Molden wrote:
Jens Rantil wrote:
Hi all,
So I have a C-function in a DLL loaded through ctypes. This particular
function returns a pointer to a double. In fact I know that this
pointer points to the first element in an array of, say for simplicity,
200
Sturla Molden wrote:
def fromaddress(address, nbytes, dtype=double):
I guess dtype=float works better...
S.M.
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion