You will want to ask numpy questions on the numpy mailing list:
http://www.scipy.org/Mailing_ListsI need a little more time to mull on your problem to give you an actual answer, but I hope I can do that over there instead of here.
-- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco -- http://mail.python.org/mailman/listinfo/python-list