A characterization of Lyapunov diagonal stability using hadamard products