how do you reverse the sign of elements in an axis of a numpy array

后端 未结 0 1770
灰色年华
灰色年华 2020-12-11 22:18

Is there any way to reverse the sign (postive=negative, negative=positive) of each individual element of a numpy array without iterating through the array?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题