Project a vector v onto the simplex. That is, return argmin_w ||w - v||^2 where w >= 0 elementwise and sum(w) = z. Parameters: v: Tensor of shape (batch_size, n) z: real number Return: Projection of v on the simplex, along the last dimension: (batch_size, n)
(v, z=1.0)