3

Say I have:

A = np.array( [1,2,3,-8] )

I need a function that would return 8

I know it's a simple one, but instant Google-Fu failed, hence some merit in populating SO maybe.

P i
  • 29,020
  • 36
  • 159
  • 267

1 Answers1

5

You can try running :

 np.abs(A).max()
F.X.
  • 6,809
  • 3
  • 49
  • 71