Re: [Numpy-discussion] SLARTG

2013-07-05 Thread Alan G Isaac
On 7/5/2013 2:50 PM, Alan G Isaac wrote: > I see that CLARTG is here: > https://github.com/scipy/scipy/blob/master/scipy/sparse/linalg/eigen/arpack/ARPACK/SRC/sstqrb.f > > But is there a Python interface in SciPy? > (Or any other SciPy access to Givens rotation?) Sorry, that was SLARTG, whereas C

[Numpy-discussion] PyArray_PutTo Question

2013-07-05 Thread Mark Janikas
Hi All, I am a bit new to the NumPy C-API and I am having a hard time with placing results into output arrays... I am using PyArray_TakeFrom to grab an input dimension of data, then do a calculation, then I want to pack it back to the output... yet the PutTo function does not have an axis argum

[Numpy-discussion] simple select(): for anyone with too many conditions for np.select(), or scalar-valued choicelists.

2013-07-05 Thread Graeme B. Bell
I've made a drop-in replacement for select() which works with large numbers of conditions, and which consistently outperforms numpy.select for my use case (scalar condlist). It fixes a couple of other issues too, and (I feel) improves the internal documentation of the code. I have included ben

[Numpy-discussion] Unique() function and avoiding Loop

2013-07-05 Thread Bakhtiyor Zokhidov
Hi everybody, I have a problem with sorting out the following function. What I expect is that I showed as an example below. Two problems are encountered to achieve the result: 1) The function sometimes can't not sort as expected: I showed an example for that below. 2) I could not do vectorizat