Hi,
I am new to boost python, thanks for the list, and hopefully, I will
find some one to help me.
I am adding the boost python example:
#include
#include
// sets the first element in a 2d numeric array
void set_first_element(::boost::python::numeric::array& y, float value)
{
y[::boost::pyt
On Mon, Jun 14, 2010 at 2:05 AM, David Goldsmith wrote:
> Hi, all! The scipy doc marathon has gotten off to a very slow start this
> summer. We are producing less than 1000 words a week, perhaps because
> many universities are still finishing up spring classes. So, this is
> a second appeal to
On Fri, Jun 18, 2010 at 10:22, Berthold Hoellmann
wrote:
> I now use 'sizeof' and 'c_int' from ctypes tp construct the dtype
> description:
>
> dtype('i%d' % sizeof(c_int))
>
> Is there a way to avoid the usage of "ctypes" by using information
> provided by numpy?
np.intc
--
Robert Kern
"I h
Robert Kern writes:
> On Fri, Jun 18, 2010 at 09:43, Berthold Hoellmann
> wrote:
>> Pauli Virtanen writes:
>>
>>> pe, 2010-06-18 kello 12:49 +0200, Berthold Hoellmann kirjoitti:
>>> [clip]
tst.inttestfunc(np.array((1,2),dtype=np.int))
tst.inttestfunc(np.array((1,2),dtype=np.int8))
>>>
pe, 2010-06-18 kello 16:43 +0200, Berthold Hoellmann kirjoitti:
[clip]
> The documentation (i refere to NumPy User Guide, Release 1.5.0.dev8106)
> claims that numpy.int is platform int and that "NPY_INT" is a C based
> name, thus referring to int also. So if I want to use "int" platform
> independe
On Fri, Jun 18, 2010 at 09:43, Berthold Hoellmann
wrote:
> Pauli Virtanen writes:
>
>> pe, 2010-06-18 kello 12:49 +0200, Berthold Hoellmann kirjoitti:
>> [clip]
>>> tst.inttestfunc(np.array((1,2),dtype=np.int))
>>> tst.inttestfunc(np.array((1,2),dtype=np.int8))
>>> tst.inttestfunc(np.array((1,2),
On Fri, Jun 18, 2010 at 09:39, Benjamin Root wrote:
> Just for my own knowledge, would Robert's suggestion of using '>i2' as the
> dtype be considered the "best" solution, mostly because of its simplicity,
> but also because it does not assume the endian-ness of the host computer?
It does come w
Pauli Virtanen writes:
> pe, 2010-06-18 kello 12:49 +0200, Berthold Hoellmann kirjoitti:
> [clip]
>> tst.inttestfunc(np.array((1,2),dtype=np.int))
>> tst.inttestfunc(np.array((1,2),dtype=np.int8))
>> tst.inttestfunc(np.array((1,2),dtype=np.int16))
>> tst.inttestfunc(np.array((1,2),dtype=np.int32)
On Fri, Jun 18, 2010 at 6:15 AM, Sturla Molden wrote:
> Den 17.06.2010 16:29, skrev greg whittier:
> > I have files (from an external source) that contain ~10 GB of
> > big-endian uint16's that I need to read into a series of arrays. What
> > I'm doing now is
> >
> > import numpy as np
> > impor
pe, 2010-06-18 kello 12:49 +0200, Berthold Hoellmann kirjoitti:
[clip]
> tst.inttestfunc(np.array((1,2),dtype=np.int))
> tst.inttestfunc(np.array((1,2),dtype=np.int8))
> tst.inttestfunc(np.array((1,2),dtype=np.int16))
> tst.inttestfunc(np.array((1,2),dtype=np.int32))
> tst.inttestfunc(np.array((1,2
Den 17.06.2010 16:29, skrev greg whittier:
> I have files (from an external source) that contain ~10 GB of
> big-endian uint16's that I need to read into a series of arrays. What
> I'm doing now is
>
> import numpy as np
> import struct
>
> fd = open('file.raw', 'rb')
>
> for n in range(1)
>
Hello,
I do have problems for checking for integer array types in a C extension
under Windows. I've put together a small example to illustrate the
problem:
h...@pc090498 ~/pytest $ cat tst.c
#include
#include "Python.h"
#i
12 matches
Mail list logo