Computes all pairwise \(l_p^p\) distances for a real matrix \(\mathbf{X}\), for a specified choice of Minkowski norm exponent \(p\).
getLpDistance(X, p)
The \(N \times P\) real matrix
The power p of \(l_p^p\), i.e., \(||x||_p^p = (x_1^p+...x_n^p)\)
A length \({N \choose 2}\) vector of pairwise \(l_p^p\) distances
Dependencies: lp_distance from fast_dist_calc.cpp