I have the following code:
$$A = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} $$ and $$B = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} $$.
But this is displayed on two lines. How can I make these matrices as well as text appear on the center of the page, all in one line?