[Matrix-SIG] binarysearch? & Little more on combine 1D arrays into 2D arrays?

Yoon, Hoon (CICG - NY Program Trading) HYoon@exchange.ml.com
Thu, 8 Oct 1998 12:16:29 -0400


Hi,

>>> binarysearch(a, 0)
Traceback (innermost last):
  File "<interactive input>", line 0, in ?
NameError: binarysearch

I uploaded latest Window versio of NumPy152.exe from Triple L site. So, I
know
that I am not getting problems due to having old version. I copied the func
Name
from the docs.

-------------------------------

>>> a
array([0, 1, 2])
>>> d
array([[0, 1, 2],
       [3, 4, 5]])

   Just wanted to see I can extend this ? a bit more.
Let's say I wanted to see 
  a | d

Is there a simpler way? (This isn't too bad, but I would like to skip
a.shape = () step).

a.shape = (1,3)
concatenate((a,d),0)
array([[0, 1, 2],
       [0, 1, 2],
       [3, 4, 5]]) 

Thanks,

Hoon,

 P.S: Thanks for all help from Paul, Janko, David, Tim, Eric, etc... for NaN
       clean solutions.