Re: [Numpy-discussion] What is an empty matrix ?

2007-07-05 Thread Sven Schreiber
David Cournapeau schrieb: > Well, I think nobody argues that scipy function should crash whatever > input you give :). The problem is more how to treat them. For example, > using numpy.linalg.pinv crashes numpy right now, det and fft do not > work, and norm returns 0. This is seems inconcistent

[Numpy-discussion] f2py and openmp

2007-07-05 Thread lorenzo bolla
hi all, I'm using f2py to compile a f90 function, parallelized with openmp, into a shared object, that I can import in python. the question is: when I call the function from python, how can I specify the number of threads to use? the usual way of doing it, with a common fortran executable, is sett

Re: [Numpy-discussion] What is an empty matrix ?

2007-07-05 Thread John Reid
Ok so crashing is always bad. What I should have said is that I think errors are bad in almost all cases as well. The norm returning zero seems sensible to me so perhaps inversions and such should raise exceptions. I would much prefer no errors were raised except where necessary. Like I said I