
Vectorization of Matrix Functions
Alan Edelman and Steven G. Johnson continue MIT's 18.S096, Matrix Calculus for Machine Learning and Beyond, with a session on treating matrix-valued functions as ordinary multivariable calculus. The approach works by vectorizing a matrix, stacking its entries into a single column vector, so that derivatives of matrix functions can be handled with the same Jacobian machinery used for vector functions. The lecture builds on earlier definitions of matrix differentials, showing how to convert between compact matrix notation and the fully vectorized form needed for gradient-based computation. This is part two of the course's second lecture, aimed at students who already have a grounding in linear algebra and want the calculus tools underlying backpropagation and other machine learning algorithms. The style is chalkboard-driven and example-heavy, consistent with MIT OpenCourseWare's standard recording format for this IAP course.