I'm trying to figure out why $C$ is a matrix and not a vector in the Roothaan Equations. Below, I have a derivation which I have taken from this PDF in which, to me, $C$ appears to be a vector. But when I look at other derivations (for example this derivation) $C$ is a matrix, although I can't figure out why $C$ is a matrix, I feel it is poorly explained.
So this is my derivation where $C$ is a vector:
Here is the basis function for 1 electron: $$ \Psi_a = \sum_{i=1}^n c_{ia}\phi_i $$
This is the Fock operator for this electron $a$:
$$ f_a = h_a + \sum_{J=1}^{N/2}(2J_j(a)-K_j(a)) $$ Above, I'm using $a$ to represent a particular electron, so $J(a)$ and $K(a)$ are, with a loose notation, Coulomb and exchange operators for electron $a$.
So we now have an equation: $$ f_a \Psi_a = \epsilon_a \Psi_a \\ f_a \sum_{i=1}^n c_{ia}\phi_i = \epsilon_a \sum_{i=1}^n c_{ia}\phi_i \\ $$
This is $1$ equation for $n$ unknown coefficients, so to get $n$ equations we can left multiply each side by each of the $n$ $\phi_i$ and integrate over all space with respect to electron $a$'s location. This would give us $n$ equations:
$$ \int \phi_j f_a \sum_{i=1}^n c_{ia}\phi_i = \int \phi_j\epsilon_a \sum_{i=1}^n c_{ia}\phi_i \\ \sum_{i=1}^n c_{ia} \int \phi_j f_a \phi_i = \sum_{i=1}^n c_{ia} \int \phi_j\epsilon_a \phi_i \\ \sum_{i=1}^n c_{ia} F_{ji} = \epsilon_a \sum_{i=1}^n c_{ia} S_{ji} $$
Where $F$ and $S$ form two $nxn$ matrices, and the matrix equation becomes $FC=SC \epsilon_a$
$$ F = \begin{bmatrix} F_{11} & F_{12} & \dots \\ \vdots & \ddots & \\ F_{n1} & & F_{nn} \end{bmatrix} \qquad S = \begin{bmatrix} S_{11} & \dots & S_{1n}\\ \vdots & \ddots & \vdots\\ S_{n1} & \dots & S_{nn} \end{bmatrix} C = \begin{bmatrix} C_{1a}\\ \vdots\\ C_{na} \end{bmatrix} $$
In this case, $C$ is a vector, and I believe we are solving for only 1 electron $a$ and it's energy $\epsilon_a$. Keep in mind I believe this is wrong. Above, $\epsilon_a$ would be a constant. The left side has dimensions $(n\times n) \times (n \times 1) = (n \times 1)$ and the right side of the equation has dimension $(n\times n) \times (n \times 1) \times (1 \times 1) = (n \times 1)$
So if we wanted to solve for two electrons, $a$ and $b$, I believe we would just solve one set of these matrix equations for each electron. The Fock matrix and coefficient matrix would be functions of the electron: $F(a)C(a) = S(a)C(a)\epsilon_a$ and $F(b)C(b) = S(b)C(b)\epsilon_b$
Edit: Shown below, I tried to form one matrix equation for the case of two electrons by concatenating the $C$ vector and Fock matrix but I can't make the dimensions work:
$$ F = \left(\begin{array}{@{}c|c@{}} \begin{matrix} F_{11a} & \dots & F_{12a} \\ F_{n1a} & \dots & F_{nna} \end{matrix} & 0 \\ \hline 0 & \begin{matrix} F_{11b} & \dots & F_{12b} \\ F_{n1b} & \dots & F_{nnb} \end{matrix} \end{array}\right) C = \begin{bmatrix} C_{1a}\\ \vdots\\ C_{na}\\ C_{1b}\\ \vdots\\ C_{nb} \end{bmatrix} $$
$$FC=SC$$
So in this scenario $C$ is still a vector but I could not figure out how to work in the energy while keeping the dimensions correct because now the energy is a $2 \times 1$ vector $[\epsilon_a, \epsilon_b]$.
Anyway I clearly have a major assumption wrong. Could someone please show me how to properly form these equations with $C$ as a matrix?
EDIT
Responding to PAEP's answer, while I do know the correct form, I just don't get why that is the form. Thus the need for a derivation.
For example if I multiply out the correct form which you supplied:
$$ FC = \begin{bmatrix} (F_{1,\bullet} \times C_{\bullet, 1}) & (F_{1,\bullet} \times C_{\bullet, 2}) & \dots \\ \vdots & \ddots & \\ (F_{n,\bullet} \times C_{\bullet, n}) & & (F_{n,\bullet} \times C_{\bullet, n}) \end{bmatrix} $$
Where $(F_{i,\bullet} \times C_{\bullet, i})$ is the dot product of row $i$ of $F$ times column $i$ of $C$
Similarly,
$$ SC = \begin{bmatrix} (S_{1,\bullet} \times C_{\bullet, 1}) & (S_{1,\bullet} \times C_{\bullet, 2}) & \dots \\ \vdots & \ddots & \\ (S_{N,\bullet} \times C_{\bullet, n}) & & (S_{n,\bullet} \times C_{\bullet, n}) \end{bmatrix} $$
then,
$$ SC\epsilon = \begin{bmatrix} (S_{1,\bullet} \times C_{\bullet, 1})\epsilon_{11} & & & & \\ & (S_{2,\bullet} \times C_{\bullet, 2})\epsilon_{22} & & & \\ & \ddots & & \\ & & & (S_{n,\bullet} \times C_{\bullet, n})\epsilon_{nn} \\ \end{bmatrix} $$
Can you derive for me $F_{i, j}$ in this case? If you look at my original derivation of $F$ it was built from 1 electron only. But this $F$ looks to be built from all electrons yet it has no additional terms.