I am taking an introductory course to finance in my Master's, and wanted to go further in the topic of portfolio theory (I am an engineering bachelor graduate, but as I just hinted, I am new to advanced maths for statistics). My question might look dumb to some of you, but I think my main problem is simply understanding the notation of the variance-covariance matrix. I watched a video saying that when calculating the optimal vector of weights to obtain the minimum-variance portfolio, in the case of many assets, we have: $$ \sigma_{portfolio}^2 = w^T\Sigma w$$ $$w^T\textbf{1}=1 $$ , where $w$ is a column vector of weights, and $\textbf{1}$ is (I suppose?) a column vector filled with 1s with the same dimension as $w$.
He then goes on to write the Lagrangian as follows: $$ \operatorname{L}=w^T\Sigma w + \lambda(w^T -1) $$ And, by deriving the Lagrangian with respect to $w$ and setting the derivative to 0, and after a couple of other steps, he ends up with: $$ w=\frac{\Sigma^{-1}\textbf{1}}{\textbf{1}^T\Sigma^{-1}\textbf{1}} $$ (If you'd like to see the intermediary steps, please ask).
The reasoning seems pretty clear to me, however I have no idea how to interpret the notation of the variance-covariance matrix in this final equation: does $\Sigma^{-1}\textbf{1}$ mean the inverse variance-covariance matrix of vector $\textbf{1}$ (which wouldn't make much sense according to the calculations I did for that case), or is it implied that $\Sigma^{-1}$ is the inverse variance-covariance matrix of the expected returns of the respective stocks? And, therefore, $\textbf{1}^T\Sigma^{-1}\textbf{1}$ would be the elements of the inverse var-covar matrix of expected returns, but as scalars (which would make sense because we can only divide scalars together and not matrices?).
Am I right in this assumption, or am I still missing the point? Again, maybe this question will look awkward to some of you, but I'm new to the topic, and after some research on the web I couldn't find the var-covar notations well explained anywhere.
Thank you!