Python Forum

Full Version: Two numpy arrays
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have two numpy arrays (3, n) which represent 3D coordinates.

I want to calculate the distance to every point in array B for each point in array A, but only save the minimum distance.

Since I know that many points are the same, it would be good to delete rows that are identical in both arrays.

Can someone help me?
I think this topic has ever been tackled in the following post using the Kronecker product (numpy.kron); the limitation is the number of elements that conditions the size of the vectors and the amont of RAM accordingly.