为什么是p.hypot和Np.subtract。 与面包车广播相比,外部飞行速度非常快,计算距离矩阵的方法是否比较快?
原文:Why are np.hypot and np.subtract.outer very fast compared to vanilla broadcast and are there faster ways to calculate distance matrix?
原文:Why are np.hypot and np.subtract.outer very fast compared to vanilla broadcast and are there faster ways to calculate distance matrix?
我有两套2D点,需要计算距离矩阵。 我需要尽快使用NumPy广播。 在计算距离矩阵的两种方法中,我不理解为什么是......。