I have a list of arrays like:
a = [array([6,2]),array([8,3]),array([4,2])]
I tried max(a) which returns the following error:>
max(a)
To have the max array along with the idx, this is what i'm using now:
a = [array([6,2]),array([8,3]),array([4,2])] In: max_a = map(max, a) Out: max_a = [6,8,4] In: idx = max_a.index(max(max_a)) Out: idx = 1 In: result = a[idx] Out: reusult = [8,3]