In square matrices, implement more explicitly the absolute value of a double.