Re: [Numpy-discussion] nested recarrays

2006-12-24 Thread Travis Oliphant
Matthew Koichi Grimes wrote: > (Newbie alert.) > > I'm having trouble making a nested record array. I'm trying to work from > the following example on the scipy.org examples page: > > >>> mydescriptor = dtype([('x', 'f4'),('y', 'f4'), # nested recarray > ... ('nested', [('i', 'i2'),('j','i2')]

[Numpy-discussion] nested recarrays

2006-12-24 Thread Matthew Koichi Grimes
(Newbie alert.) I'm having trouble making a nested record array. I'm trying to work from the following example on the scipy.org examples page: >>> mydescriptor = dtype([('x', 'f4'),('y', 'f4'), # nested recarray ... ('nested', [('i', 'i2'),('j','i2')])]) >>> myarr = array([(1.0, 2.0, (1,2)

Re: [Numpy-discussion] Bug in numarray<->numpy interaction

2006-12-24 Thread Charles R Harris
On 12/24/06, Norbert Nemec <[EMAIL PROTECTED]> wrote: The following snippet demonstrates a problem in the interaction of numarray 1.5.2 with numpy 1.0.1 (and older versions): --- #!/usr/bin/env python import numarray, numpy na = numarray.array(0.) np = numpy.array(0.) na[...]

Re: [Numpy-discussion] Bug in numarray<->numpy interaction

2006-12-24 Thread Charles R Harris
On 12/24/06, Norbert Nemec <[EMAIL PROTECTED]> wrote: The following snippet demonstrates a problem in the interaction of numarray 1.5.2 with numpy 1.0.1 (and older versions): --- #!/usr/bin/env python import numarray, numpy na = numarray.array(0.) np = numpy.array(0.) na[...]

[Numpy-discussion] Bug in numarray<->numpy interaction

2006-12-24 Thread Norbert Nemec
The following snippet demonstrates a problem in the interaction of numarray 1.5.2 with numpy 1.0.1 (and older versions): --- #!/usr/bin/env python import numarray, numpy na = numarray.array(0.) np = numpy.array(0.) na[...] = np --- the last linec causes the erro

Re: [Numpy-discussion] Newbie Question, Probability

2006-12-24 Thread Sven Schreiber
Robert Kern schrieb: > Rather, to put it accurately, numpy should not get large chunks of scipy > functionality that require FORTRAN dependencies for reasons that should be > obvious from that description. scipy.stats.distributions is just such a chunk. I was probably not very clear, I was refe