gem/openquake — pull request #542 by acerisara (2011-10-18 10:59:29+00:00)
Title: Bug 860476

Addresses: https://bugs.launchpad.net/openquake/+bug/860476

I don't know exactly how this function is going to be called. If we have to call it many times, we could pass as input two 2D numpy arrays and do the job in one single pass.