Find the matrix $\mathbf{R}$ such that for any vector $\mathbf{v},$ $\mathbf{R} \mathbf{v}$ is the reflection of $\mathbf{v}$ through the $xy$-plane.
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Find the matrix $\mathbf{R}$ such that for any vector $\mathbf{v},$ $\mathbf{R} \mathbf{v}$ is the reflection of $\mathbf{v}$ through the $xy$-plane.
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
\begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & -1 \end{pmatrix}
Find the matrix $\mathbf{R}$ such that for any vector $\mathbf{v},$ $\mathbf{R} \mathbf{v}$ is the reflection of $\mathbf{v}$ through the $xy$-plane.
train