How To Make Gradients With Lp Ranks