Rank and inertia of a complex hadamard Power