consider the below array
np.array([a,b,c]) #where a,b and c are some integers
i with to do something like this
[(a-b),(a-c),(b-c)] #basically subtract each element in the array with every other element except for itself
this is somewhat like a matrix but there is no need to do something like (a-a) or repeat instance which are basically just the reverse like (b - a) or (c - b) is reverse of (a - b) and (a - c)
If this were a product there are some ready to use functions available like np.kron but how to handle non-product operations like this?
the closest i have got to is:
(a[0] - np.choose([1,2],a))
this basically give me (a-b) and (a - c) but still (b - c) remains.
Any suggestions?