I have a numpy array of size 4x400. I want to apply a function to all pairs of rows of this numpy array.
The function:
def func(vector1,vector2):
...
...
return X
where X is a float value.
So in the end I will get a vector of length 10.
Is there any way to this efficiently (fast) without using loops?