Most efficient way to perform XOR operations between two matrices by using less memory
I want to perform the XOR operations between two 2D numpy.ndarray by saving the memory usage. For each row of u_values, I want to perform the XOR operation to every row of v_values and so on. For example, if u has dimension (8,10) and v has dimension (6,10), the result will end up with a dimension (48, 10).