Re: [Numpy-discussion] 100 Numpy exercices

2014-05-28 Thread nicky van foreest
I meant exercise 9 of the neophyte section... On 29 May 2014 07:04, nicky van foreest wrote: > Hi, > > Very helpful, these exercises. > > Pertaining to exercise 9. Is there a reason not to use the solution of > exercise 5? > > bye > > Nicky > > > On 29 May 2014 00:59, Eraldo Pomponi wrote: > >

Re: [Numpy-discussion] 100 Numpy exercices

2014-05-28 Thread nicky van foreest
Hi, Very helpful, these exercises. Pertaining to exercise 9. Is there a reason not to use the solution of exercise 5? bye Nicky On 29 May 2014 00:59, Eraldo Pomponi wrote: > It doesn't use stride_tricks, and seberg doesn't quite like it, but this >> made the rounds in StackOverflow a couple

[Numpy-discussion] Arguments silently ignored (kwargs) in meshgrid etc.

2014-05-28 Thread Michael McNeil Forbes
I just noticed that meshgrid() silently ignore extra arguments. It just burned me (I forgot that it is meshgrid(indexing='ij') and tried meshgrid(indices='ij') which subtly broke my code.) Is this intentional? I don't see why `meshgrid` does not have explicit arguments. If this is not a desig

Re: [Numpy-discussion] 100 Numpy exercices

2014-05-28 Thread Eraldo Pomponi
> > It doesn't use stride_tricks, and seberg doesn't quite like it, but this > made the rounds in StackOverflow a couple of years ago: > > > http://stackoverflow.com/questions/16970982/find-unique-rows-in-numpy-array/16973510#16973510 > > It may not work properly on floats, but I think it is a very

Re: [Numpy-discussion] 100 Numpy exercices

2014-05-28 Thread Valentin Haenel
Hi Nicolas, * Nicolas Rougier [2014-05-27]: > I've updated the numpy exercices collection and made it available on > github at: > > https://github.com/rougier/numpy-100 > > > These exercices mainly comes from this mailing list and also from > stack overflow. If you have other examples in mind,

[Numpy-discussion] f2py and string arrays (need help)

2014-05-28 Thread Siegfried Gonzi
Hi all Given the following pseudo code: == SUBROUTINE READ_B( FILENAME, ix,iy,iz,nx, OUT_ARRAY, out_cat) IMPLICIT NONE INTEGER*4, INTENT(IN) :: IX, iy, iz, nx REAL*4,INTENT(OUT) :: OUT_ARRAY(nx,IX, iy, iz) CHARACTER, dimension(nx,40),intent(out) ::OUT_CAT CHARACTER(LEN=