Calculates the absolute value of a vector.