해당하는 Elementary Matrix 만드는 방법
Elementary Row Operations는 기본적으로
- 단위 행렬(identity matrix)에
- 원하는 Row Operation에 해당하는 특정 변환을 적용하여 생성함.

2024.02.17 - [.../Linear Algebra] - [LA] Row Operations and Row Equivalent
[LA] Row Operations and Row Equivalent
Linear Algebra에서는 "Row Operations"와 유사하게 "Column Operation"도 존재. 이 두 유형의 Operations은 Matrix를 다룰 때 중요한 Tool로,matrix의 성질을 조사하거나특정한 형태(Echelon form등)로 변환하는 데 사용.
dsaint31.tistory.com
각 연산의 Elementary Row Operation Matrix를 다음의 예제로 살펴볼 것.
1. 행 교환 (Row Swapping or Interchanging)
두 행의 위치를 서로 교환하는 경우, 단위 행렬에서 두 행을 바꿔치기함.
예시:$E_{swap}$: 행렬의 1행과 2행을 교환하는 행렬.
$$
E_\text{swap} =
\begin{bmatrix}
0 & 1 & 0 \\
1 & 0 & 0 \\
0 & 0 & 1
\end{bmatrix}.
$$
- $E_\text{swap}$을 원래 행렬 $A$에 곱하면 1행과 2행이 교환됨:
$$
E_\text{swap} A =
\begin{bmatrix}
0 & 1 & 0 \\
1 & 0 & 0 \\
0 & 0 & 1
\end{bmatrix}
\begin{bmatrix}
a_{11} & a_{12} \\
a_{21} & a_{22} \\
a_{31} & a_{32}
\end{bmatrix}
=
\begin{bmatrix}
a_{21} & a_{22} \\
a_{11} & a_{12} \\
a_{31} & a_{32}
\end{bmatrix}.
$$
2. 행 스칼라 곱 (Row Scaling)
한 행의 모든 원소를 특정 Non-zero Scalar $k$ 로 곱하는 경우.
예시: $E_{scale}$: 2행을 $k = 3$으로 스케일링하는 행렬.
$$
E_\text{scale} =
\begin{bmatrix}
1 & 0 & 0 \\
0 & 3 & 0 \\
0 & 0 & 1
\end{bmatrix}.
$$
- $E_\text{scale}$을 $A$에 곱하면 2행이 3배로 스케일됨:
$$
E_\text{scale} A =
\begin{bmatrix}
1 & 0 & 0 \\
0 & 3 & 0 \\
0 & 0 & 1
\end{bmatrix}
\begin{bmatrix}
a_{11} & a_{12} \\
a_{21} & a_{22} \\
a_{31} & a_{32}
\end{bmatrix}
=
\begin{bmatrix}
a_{11} & a_{12} \\
3a_{21} & 3a_{22} \\
a_{31} & a_{32}
\end{bmatrix}.
$$
3. 행 덧셈 (Row Addition or Replacement)
한 행에 다른 행의 스칼라 배를 더하는 경우.
예시: $E_\text{add}$: 2행에 1행의 2배를 더하는 행렬.
$$
E_\text{add} =
\begin{bmatrix}
1 & 0 & 0 \\
2 & 1 & 0 \\
0 & 0 & 1
\end{bmatrix}.
$$
- $E_\text{add}$를 $A$에 곱하면, 2행이 $R_2 + 2 R_1$로 대체됨:
$$
E_\text{add} A =
\begin{bmatrix}
1 & 0 & 0 \\
2 & 1 & 0 \\
0 & 0 & 1
\end{bmatrix}
\begin{bmatrix}
a_{11} & a_{12} \\
a_{21} & a_{22} \\
a_{31} & a_{32}
\end{bmatrix}
=
\begin{bmatrix}
a_{11} & a_{12} \\
a_{21} + 2a_{11} & a_{22} + 2a_{12} \\
a_{31} & a_{32}
\end{bmatrix}.
$$
종합 정리:
- 행 교환: 단위 행렬에서 두 행의 위치를 교환.
- 행 스칼라 곱: 단위 행렬의 특정 행을 스칼라 값으로 곱함.
- 행 덧셈: 단위 행렬의 한 행에 다른 행의 스칼라 배를 더함.
이들은 모두 Identity Matrix에 해당 Row Operation을 가하여 얻어짐.
같이보면 좋은 자료
2024.02.17 - [.../Linear Algebra] - [LA] Row Operations and Row Equivalent
[LA] Row Operations and Row Equivalent
Linear Algebra에서는 "Row Operations"와 유사하게 "Column Operation"도 존재. 이 두 유형의 Operations은 Matrix를 다룰 때 중요한 Tool로,matrix의 성질을 조사하거나특정한 형태(Echelon form등)로 변환하는 데 사용.
dsaint31.tistory.com
[LA] Gauss-Jordan Elimination (including Gauss Elimination) and LU Factorization
System of Linear Equations (연립방정식)의 Solution를 구하는 가장 표준적인 방법.Gauss Elimination을 좀 더 보강한 방법(컴퓨터 없이 연립일차방정식 계산할 경우 가장 일반적으로 사용됨)System의 Augmented Matr
dsaint31.tistory.com
[LA] 예제: LU Factorization (or LU Decomposition) 와 Gauss Elimination
LU Factorization와 Gauss EliminationLU Factorization은행렬 $A$ 를 다음과 같이 두 행렬 $L$ (Lower Triangular Matrix)와 $U$ (Upper Triangular Matrix)로 분해하는 기법임:$$PA = LU$$여기서 $P$ 는 Permutation Matrix로, 피벗팅(pivoti
dsaint31.tistory.com
2025.01.21 - [.../Linear Algebra] - [Summary] Linear Algebra (작성중)
[Summary] Linear Algebra (작성중)
ML 을 위해 Linear Algebra 공부시 참고할만한 책더보기전체적으로 공부를 한다면 다음을 권함.Linear Algebra and Its Application, 5th ed 이상, David C. Lay5th ed. 는 웹에서 쉽게 pdf도 구할 수 있음.개인적으로 Str
dsaint31.tistory.com
'... > Linear Algebra' 카테고리의 다른 글
| [LA] LDU Decomposition (or LDU Factorization) (1) | 2025.02.05 |
|---|---|
| [LA] 예제: Eigenvalue, Eigenvector 구하기 (기초) (0) | 2025.01.28 |
| [LA] 예제: LU Factorization (or LU Decomposition) 와 Gauss Elimination (0) | 2025.01.27 |
| [LA] Gram-Schmidt Process and QR Decomposition (0) | 2025.01.26 |
| [LA] Inverse Matrix (0) | 2025.01.25 |