Same, but caches the full N×N squared-distance matrix. Worth it when the ambient dimension is large and N is moderate (the paper's 24- and 2352-dimensional examples); O(N²) memory.
Same, but caches the full N×N squared-distance matrix. Worth it when the ambient dimension is large and N is moderate (the paper's 24- and 2352-dimensional examples); O(N²) memory.