- Hands-On Mathematics for Deep Learning
- Jay Dawani
- 336字
- 2021-06-18 18:55:10
Permutations
In the example on solving systems of linear equations, we swapped the positions of rows 2 and 3. This is known as a permutation.
When we are doing triangular factorization, we want our pivot values to be along the diagonal of the matrix, but this won't happen every time—in fact, it usually won't. So, instead, what we do is swap the rows so that we get our pivot values where we want them.
But that is not their only use case. We can also use them to scale individual rows by a scalar value or add rows to or subtract rows from other rows.
Let's start with some of the more basic permutation matrices that we obtain by swapping the rows of the identity matrix. In general, we have n! possible permutation matrices that can be formed from an nxn identity matrix. In this example, we will use a 3×3 matrix and therefore have six permutation matrices, and they are as follows:
This matrix makes no change to the matrix it is applied on.
This matrix swaps rows two and three of the matrix it is applied on.
This matrix swaps rows one and two of the matrix it is applied on.
This matrix shifts rows two and three up one and moves row one to the position of row three of the matrix it is applied on.
This matrix shifts rows one and two down one and moves row three to the row-one position of the matrix it is applied on.
This matrix swaps rows one and three of the matrix it is applied on.
It is important to note that there is a particularly fascinating property of permutation matrices that states that if we have a matrix and it is invertible, then there exists a permutation matrix that when applied to A will give us the LU factor of A. We can express this like so:

- 計算機綜合設計實驗指導
- Python金融大數(shù)據(jù)分析(第2版)
- 業(yè)務數(shù)據(jù)分析:五招破解業(yè)務難題
- 算法與數(shù)據(jù)中臺:基于Google、Facebook與微博實踐
- 深入淺出MySQL:數(shù)據(jù)庫開發(fā)、優(yōu)化與管理維護(第2版)
- 數(shù)據(jù)驅動設計:A/B測試提升用戶體驗
- Python醫(yī)學數(shù)據(jù)分析入門
- 企業(yè)級數(shù)據(jù)與AI項目成功之道
- Python數(shù)據(jù)分析與挖掘實戰(zhàn)(第3版)
- PostgreSQL指南:內幕探索
- Python數(shù)據(jù)分析與數(shù)據(jù)化運營
- INSTANT Android Fragmentation Management How-to
- SAS金融數(shù)據(jù)挖掘與建模:系統(tǒng)方法與案例解析
- 大數(shù)據(jù)技術原理與應用:概念、存儲、處理、分析與應用
- 區(qū)塊鏈+:落地場景與應用實戰(zhàn)