You are viewing a single comment's thread. Return to all comments →
You can abuse Python type conversions, to shorten this even more :)
a = (a0 > b0) + (a1 > b1) + (a2 > b2)
Compare the Triplets
You are viewing a single comment's thread. Return to all comments →
You can abuse Python type conversions, to shorten this even more :)
a = (a0 > b0) + (a1 > b1) + (a2 > b2)