Linear Algebra Review for Machine Learning: Matrices, Vectors, and Basic Operations
Matrices and Vectors
A matrix is a rectangular array of numbers enclosed by square brackets. For example:
[ 1 2 3 ]
[ 4 5 6 ]
[ 7 8 9 ]
[10 11 12]
This is a 4×3 matrix (4 rows, 3 columns). The dimension is always given as number of rows × number of columns.
Vectors are a special type of matrix with only one column. An n-dimensional vector has ...
Posted on Fri, 08 May 2026 11:11:33 +0000 by atstein