There's an out parameter, which updates the array in-place: numpy.abs(A, out=A) And also happens to be a lot faster because you don't have to allocate ...
確定! 回上一頁