[Numpy-discussion] Create a n-D grid; meshgrid alternative
Stefan van der Walt
stefanv at berkeley.edu
Sun May 10 21:07:09 EDT 2015
On 2015-05-10 14:46:12, Jaime Fernández del Río
<jaime.frio at gmail.com> wrote:
> Isn't what you are trying to build a cartesian product function?
> There is a neat, efficient implementation of such a function in
> StackOverflow, by our own pv.:
>
> http://stackoverflow.com/questions/1208118/using-numpy-to-build-an-array-of-all-combinations-of-two-arrays/1235363#1235363
And a slightly faster version just down that page ;)
Stéfan
More information about the NumPy-Discussion
mailing list