I have read posts describing how to align equations vertically and horizontally. Unfortunately it does not work. Does anyone know how to fix the following code?
\begin{equation}
\begin{aligned}
w_1 &= u_1,
&
v1 = w1 / \left\lVert w_1\right\rVert
\\
w_2 &= u_2 - \langle u_2, v_1\rangle v_1,
&
v_2 = w2 / \left\lVert w_2\right\rVert
\\\\
w_p = u_p - \sum_{i=1}^{p-1} \langle u_p, v_i\rangle v_i,
&
v_p &= w_p / \left\lVert w_p\right\rVert
\end{aligned}
\end{equation}
Additionally, I would like to add a vertically dotted line between the equations:
w2 = u2 - ... and wp = up - ...
and
v2 = w2/... and vp = wp/...