Scalars, Vectors, Matrices, and Tensors
Scalar: a single number (a zero-dimensional array).
Vector: an ordered sequence of scalars (a one-dimensional array, an extension of scalars).
Matrix: a vector whose scalars are replaced by vectors (a two-dimensional array, an extension in dimensionality).
Tensor: a higher-order matrix (a three-dimensional or higher-dimensional array; more complex and less intuitive).
Norms and Inner Products
Norms
Norm: a measure of the size of a single vector.
L_p Norm
The general L_p norm is defined as:
norm: , that is, the number of all x_i that are not equal to zero.
norm: , that is, the sum of the absolute values of the vector's components, also known as Manhattan distance.
norm: , that is, Euclidean distance.
norm: , that is, the infinity norm or maximum norm, taking the maximum absolute value among all elements in the vector, also known as Chebyshev distance.
Inner Product
Inner product: a description of the relationship between two vectors.
The inner product of two vectors with the same dimensions:
Special case: when the inner product is 0, the two vectors are perpendicular in two-dimensional space. In higher-dimensional spaces, the two vectors are said to be orthogonal. If two vectors are orthogonal, that means they are linearly independent.
Linear Spaces
If there is a set whose elements are all vectors of the same dimensionality (whether finitely many or infinitely many), and structured operations such as addition and scalar multiplication are defined on it, then such a set is called a linear space. A linear space with an inner product operation defined is called an inner product space.
In a linear space, any vector represents a point in n-dimensional space; conversely, any point in the space can also be uniquely represented by a vector.
Orthogonal Basis
In an inner product space, a set of pairwise orthogonal vectors forms an orthogonal basis for that space. If the L_2 norm of every basis vector in the orthogonal basis is unit length 1, then this set of orthogonal basis vectors is an orthonormal basis.
The orthogonal basis that describes an inner product space is not unique. For two-dimensional space, the rectangular coordinate system and the polar coordinate system correspond to two different sets of orthogonal bases, and they also represent two practical ways of description.
