Optimize identification of quantiles along array columns
I have an array A (of size m x n), and a percentage p in (0,1). I need to produce an m x n boolean array B, with “True” in in the (i,j) entry if A[i,j] is in p^{th} quantile of the column A[:,j].