Given 2 numPy arrays of length N, I would like to create a pairwise 2D array (N x N) based on a custom function. I would like to create an array C of size NxN. such that Example: I would like to create I know I can do this by nested loop: but looking for a neat and more efficient