On Tue, Jan 03, 2012 at 07:56:52PM -0800, Wonjun, Choi wrote:
> what is the best way to pass c, c++ array to numpy in cython?
I don't know if it is the best way, but I wrote a self-contained example
a little while ago, to explain to people one way of doing it:
http://gael-varoquaux.info/blog/?p=15
Hi numpy users,
*Is there a convenient way in numpy to go from "string" features like:*
"uc_berkeley", "google", 1
"stanford", "intel", 1
.
.
.
"uiuc", "texas_instruments", 0
*to a numpy matrix like:*
"uc_berkeley", "stanford", ..., "uiuc", "google", "intel",
"texas_instruments", "bool"
A categorical type (or enum type) is an important dtype to add to NumPy. It
would be very nice if the option existed to make the categorical dtype
"dynamic" in that the categories can grow as more data is added or inserted
into the array. This would effectively allow binning of data on inser
Thanks for your responses but I am still having difficuties with this
problem. Using argmax gives me one very large value and I am not sure what
it is.
There shouldn't be any issues with the shape. The latitude and longitude
are the same shape always (covering a state) and the temperature (TSFC)
da
hello,
what is the best way to pass c, c++ array to numpy in cython?
or what is the best way to pass fortran multi-dimensional array to
numpy in cython?
Wonjun, Choi
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mail
Nathaniel,
On Tue, Jan 3, 2012 at 2:02 PM, Nathaniel Smith wrote:
> On Tue, Jan 3, 2012 at 9:46 AM, Ognen Duzlevski wrote:
>> Hello,
>>
>> I am playing with adding an enum dtype to numpy (to get my feet wet in
>> numpy really). I have looked at the
>> https://github.com/martinling/numpy_quaterni
On Tue, Jan 3, 2012 at 9:46 AM, Ognen Duzlevski wrote:
> Hello,
>
> I am playing with adding an enum dtype to numpy (to get my feet wet in
> numpy really). I have looked at the
> https://github.com/martinling/numpy_quaternion and I feel comfortable
> with my understanding of adding a simple type t
Hello --
I've been having some problems building numpy.
The first problem I had "error: unrecognizable insn", I was able to
fix by following these instructions:
http://www.mail-archive.com/numpy-discussion@scipy.org/msg34238.html
> Could you try the following, at line 38, to add the following:
>
On 01/03/2012 06:46 PM, Ognen Duzlevski wrote:
> Hello,
>
> I am playing with adding an enum dtype to numpy (to get my feet wet in
> numpy really). I have looked at the
> https://github.com/martinling/numpy_quaternion and I feel comfortable
> with my understanding of adding a simple type to numpy i
On Tue, Jan 3, 2012 at 12:46 PM, Wes McKinney wrote:
> On Tue, Jan 3, 2012 at 1:06 PM, Jim Vickroy wrote:
>> On 1/3/2012 10:46 AM, Ognen Duzlevski wrote:
>>> Hello,
>>>
>>> I am playing with adding an enum dtype to numpy (to get my feet wet in
>>> numpy really). I have looked at the
>>> https://g
On Tue, Jan 3, 2012 at 1:06 PM, Jim Vickroy wrote:
> On 1/3/2012 10:46 AM, Ognen Duzlevski wrote:
>> Hello,
>>
>> I am playing with adding an enum dtype to numpy (to get my feet wet in
>> numpy really). I have looked at the
>> https://github.com/martinling/numpy_quaternion and I feel comfortable
>
On Fri, Dec 30, 2011 at 9:43 PM, Jaidev Deshpande
wrote:
>> Documentation is specificsly excluded from GSoC (at least it was a
>> couple years ago when I last was involved)
>
> Documentation wasn't excluded last year from GSoC, there were quite a
> few projects that required a lot of documentation
On 1/3/2012 10:46 AM, Ognen Duzlevski wrote:
> Hello,
>
> I am playing with adding an enum dtype to numpy (to get my feet wet in
> numpy really). I have looked at the
> https://github.com/martinling/numpy_quaternion and I feel comfortable
> with my understanding of adding a simple type to numpy in
On Tue, Jan 3, 2012 at 12:46 PM, Ognen Duzlevski wrote:
> Hello,
>
> I am playing with adding an enum dtype to numpy (to get my feet wet in
> numpy really). I have looked at the
> https://github.com/martinling/numpy_quaternion and I feel comfortable
> with my understanding of adding a simple type
the problem is here,
data=np.empty([10,90,720])
you should always use np.ma.empty if you want to construct a masked empty
array.
Chao
2012/1/3 Chao YUE
> Dear all numpy users,
>
> I have 10 90X720 arrays. let's say they are in a list 'a' with each
> element a 90X720 numpy masked array.
> then
Hellow, while using the nested_iters function, I've noticed that it does
not accept length zero nestings. For example, the following fails:
nested_iters([ones(3),ones(3)], [[], [0]])
with "ValueError: If 'op_axes' or 'itershape' is not NULL in theiterator
constructor, 'oa_ndim' must be greater th
Hello,
I am playing with adding an enum dtype to numpy (to get my feet wet in
numpy really). I have looked at the
https://github.com/martinling/numpy_quaternion and I feel comfortable
with my understanding of adding a simple type to numpy in technical
terms.
I am mostly a C programmer and have pr
On Tue, Jan 3, 2012 at 14:42, Neal Becker wrote:
> I made 2 mistakes here, the 1st argument had the wrong shape, and I really
> wanted to use 'where', not 'choose'. But shouldn't segfault:
>
> ValueError: Need between 2 and (32) array objects (inclusive).
> Segmentation fault (core dumped)
Can y
I made 2 mistakes here, the 1st argument had the wrong shape, and I really
wanted to use 'where', not 'choose'. But shouldn't segfault:
ValueError: Need between 2 and (32) array objects (inclusive).
Segmentation fault (core dumped)
___
NumPy-Discussi
On Mon, Jan 2, 2012 at 10:46 PM, wrote:
> On Mon, Jan 2, 2012 at 9:44 PM, Charles R Harris
> wrote:
> > Hi All,
> >
> > I've made a pull request for a rather large update of the polynomial
> > package. The new features are
> >
> > 1) Bug fixes
> > 2) Improved documentation in the numpy referenc
Dear all numpy users,
I have 10 90X720 arrays. let's say they are in a list 'a' with each element
a 90X720 numpy masked array.
then I create a new empty ndarray: data
data=np.empty([10,90,720])
##first I store all the 10 ndarray in a 10X90X720 array:
for i,d in enumerate(a):
data[i]=a
dat
21 matches
Mail list logo