This blog is based on Jong-han Kim's Linear Algebra
Block Vectors
a=bcd
Zero, ones, and unit vectors
n-vector 모든 값이 0 이면, 0n, 0라 표현한다.
n-vector 모든 값이 1 이면, 1n, 1라 표현한다.
unit vector 는 하나의 값이 1, 나머지는 0으로 채워짐.
e.g., 길이가 3인 단위벡터
e1=100e2=010e3=001
Sparsity
벡터에 0으로 채워진 경우가 많다. 이를 효율적으로 계산할 수 있음.
mnz(x): non-zero인 값의 수
e.g., zero vector, unit vector
Properties of vector addition
commutative: a+b=b+a
associative: (a+b)+c=a+(b+c)
Scaler-vector multiplication
scalar β, n-vector a
βa=(βa1,…,βan)
e.g.,
(−2)196=−2−18−12
Properties of scalar-vector multiplication
associative: (βγ)a=β(γa)
left distributive: (β+γ)a=βa+γa
right distributive: β(a+b)=βa+βb
Linear combinations
vectors a1,…,am, scalars β1,…,βm 의 linear combination은 β1a1+⋯+βmam 이다.
e.g., for any n-vector b
b=b1e1+⋯+bnen
Linear product
Inner product (or dot product) of n-vectors a and b is
aTb=a1b1+⋯+anbn
다른 notation: <a,b>, <a∣b>, (a,b), a⋅b
e.g.,
−122T10−3=(−1)(1)+(2)(0)+(2)(−3)=−7
Properties of inner product
- aTb=bTa
- (γa)Tb=γ(aTb)
- (a+b)Tc=aTc+bTc
e.g.,
(a+b)T(c+d)=aTc+aTd+bTc+bTd
중요 예시
행렬에서 자주 사용하는 수식이다.
eiTa=ai(picks out ith entry)
1Ta=a1+⋯+an(sum of entries)
aTa=ai2+⋯+an2(sum of squares of enties)