neg method Null safety

void neg()

Negates elements.

Element i is calculated with the formula:

x[i] = -x[i];

Implementation

void neg();