xor(mask) {
			if (this.width !== mask.getWidth() || this.height !== mask.getHeight()
				|| this.rowSize !== mask.getRowSize()) {
				throw new IllegalArgumentException('input matrix dimensions do not match');
			}
			const rowArray = new BitArray(Math.floor(this.width / 32) + 1);
			const rowSize = this.rowSize;
			const bits = this.bits;
			for (let y = 0, height = this.height; y < height; y++) {
				const offset = y * rowSize;
				const row = mask.getRow(y, rowArray).getBitArray();
				for (let x = 0; x < rowSize; x++) {
					bits[offset + x] ^= row[x];
				}
			}
		}
Exclusive-or (XOR): Flip the bit in this {@code BitMatrix} if the corresponding
mask bit is set.

@param mask XOR mask