(I heard of this for long... never learned it, and today it is the time...)
I have a giant M x N matrix, and I am using a M vector and a N vector to hold 0 and 1, which indicate which column or row is active, which is updated frequently. I heard this could be done by using bit operator, but don't know how. Please give me a reference.
Further my M or N could change too, though much less frequently. which means I need to change the indicator array or any other means accordingly as well.
Thanks this forum!