The formula used to compute the L matrix which is also called the elimination matrix is \({\bf{L}} = \sum\limits_{j = 1}^n {\sum\limits_{i = j}^n {{{\bf{u}}_{i,j}}{{\left( {vec\;{{\bf{E}}_{i,j}}} \right)}^\prime }} } \)
\({{{\bf{u}}_{i,j}}}\) are the \(n \times 1\) vectors constructed by the function u.vectors.
\({{{\bf{E}}_{i,j}}}\) are the \( n \times n\) matrices constructed by the function E.matrices.
References
Magnus, J. R. and H. Neudecker (1980). The elimination matrix, some lemmas and applications,
SIAM Journal on Algebraic Discrete Methods, 1(4), December 1980, 422-449.
Magnus, J. R. and H. Neudecker (1999) Matrix Differential Calculus with Applications in Statistics and Econometrics,
Second Edition, John Wiley.