i have a set of 3 arrays which i would compare to eachother. array a contain a set of values and the values of array b and c should be partly the same.
it is so that if let say a[0] == b[0] than is c[0] always a wrong value
for better explanation i try to show what i mean.
import numpy as np
a = np.array([2, 2, 3, 4])
b = np.array([1, 3, 3, 4])
c = np.array([2, 2, 4, 3])
print(a == b)
# return: [False False True True]
print(a == c)
# return: [True True False False]
as you can see the from both sets i have two True and two False. so if one of both is true the total should be true. when i do the following i get a single True/ False for an array. and the answers are what i want...
print((a == b).all())
# return: False
print((a == c).all())
# return: False
print(a.all() == (b.all() or c.all()))
# return: True
When i make the array b and c so that i have one vallue that in both cases is wrong i should end with a False
import numpy as np
a = np.array([2, 2, 3, 4])
b = np.array([1, 3, 3, 4])
c = np.array([5, 2, 4, 3])
print(a == b)
# return: [False False True True]
print(a == c)
# return: [False True False False]
print((a == b).all())
# return: False
print((a == c).all())
# return: False
So far so Good
print(a.all() == (b.all() or c.all()))
# return: True
this part is not good this should be a False!!
How do i get an or function like this so that i end with an True when for each value in a an same value exist in b or c??
EDIT:
explanation about a[0] == b[0] than is c[0]:
i have an python function where phase information comes in and have to do some actions.
before that i want check if i have to do with an array of imaginary values or with an array with phase angles. I want to check this before i do something. The problem is the phase angle because the right side is the inverted phase +/- pi. so for every value i have two options. and yes most of the time it is an exclusive or but in the case +/- pi/2 it is not since both are true and that is also fine...
a[0] == b[0]than isc[0]always a wrong value"? I see it as exclusive OR, but the rest of your question might imply you want normal OR.