I am currently working on a intro project in Computer Graphics. For a specific part of my implementation, I am working with a boolean NumPy matrix, where all the values are False and some rows/columns are True. Lets say I have two boolean matrices of different sizes (for context - this is because while running some of the rows/columns are deleted):
[[True, False, False]
[True, False, False]
[True, False, False]]
and
[[True, True]
[False, False]
[False, False]]
I would like to create a new matrix that will be:
[[True, True, True]
[True, False, False]
[True, False, False]]
=> meaning I would like to receive a matrix holding all of the true values from both rows and columns matrices.
How can this be done? Thanks