标签: python numpy
可能重复: Running maximum of numpy array values
我正在寻找numpy中的最大功能,例如:
a = array([0.2,0.3,0.25,0.5,0.2,0.8]) maxi(a) ---> [0.2,0.3,0.3,0.5,0.5,0.8]
感谢