Calculates the negation of a vector.