Dot product – 스칼라 곱
스칼라 곱(scalar product, dot product)은 두 벡터로 스칼라를 계산하는 이항연산이다.
스칼라 곱을 사용하는 모든 유클리드 공간은 내적공간이다.
두 벡터 a = [a1, a2, … , an], b = [b1, b2, … , bn]의 스칼라 곱은 다음과 같다:
The dot product of two vectors (from an orthonormal vector space)
a = [a1, a2, … , an] and b = [b1, b2, … , bn] is by definition:
where Σ denotes summation notation.
For example, the dot product of two three-dimensional vectors [1, 3, −5] and [4, −2, −1] is
Using matrix multiplication and treating the (column) vectors as n×1 matrices,
the dot product can also be written as:
where aT denotes the transpose of the matrix a.
Using the example from above, this would result in a 1×3 matrix (i.e., vector) multiplied by a 3×1 vector (which, by virtue of the matrix multiplication, results in a 1×1 matrix, i.e., a scalar):
The dot product of two vectors a and b (sometimes called inner product, or, since its result is a scalar, the scalar product) is denoted by a ∙ b and is defined as:
where ||a|| and ||b|| denote the norm (or length) of a and b, and θ is the measure of the angle between a and b (see trigonometric function for an explanation of cosine). Geometrically, this means that a and b are drawn with a common start point and then the length of a is multiplied with the length of that component of b that points in the same direction as a.
The dot product can also be defined as the sum of the products of the components of each vector:
where a and b are vectors of n dimensions; a1, a2, …, an are coordinates of a; and b1, b2, …, bn are coordinates of b.
This operation is often useful in physics; for instance, work is the dot product of force and displacement.출처: 위키 링크(Dot Product), 위키 링크(Vector)