I have seen the singular value decomposition (SVD) represented in two different ways and wanted to know a) if they're both correct and b) what their relationship is.
In the first version a matrix $A \in \mathbb{R}^{m \times n}$ such that $\mbox{rank}(A) = s$, can be decomposed as $A = V D U^t$ where $V \in \mathbb{R}^{m \times s}$, $D \in \mathbb{R}^{s\times s}$ and $U \in \mathbb{R}^{n \times s}$.
In the second version a matrix $A \in \mathbb{R}^{m \times n}$, can be decomposed as $A = V D U^t$ where $V \in \mathbb{R}^{m \times m}$, $D \in \mathbb{R}^{m \times n}$ and $U \in \mathbb{R}^{n \times n}$.
Both representations are correct, and they coincide as far as the smaller matrices $U,V$. The first one is called "thin SVD". The second one has the same elements of $D$ as the first one, but the rest of the matrix is filled out with zeros.
The difference is that matrices $U$ and $V$ in the "larger" representation contain extra columns, which annihilate after being multiplied by zero elements of $D$.