当前位置:网站首页>[TA frost wolf \u may- hundred talents plan] 1.2.2 matrix calculation
[TA frost wolf \u may- hundred talents plan] 1.2.2 matrix calculation
2022-07-01 03:47:00 【zczplus】
【TA- Frost Wolf _may-《 Hundred people plan 》】1.2.2 Matrix computing
1.2.2 Matrix computing
1.2.2.1 matrix
Definition : One m x n The matrix of is a matrix of m That's ok n A rectangular array of column elements .
In graphics, we usually operate on the square matrix , Two dimensional second order , Three dimensional third order , Three dimensional band translation is fourth order .
There are other examples :
- Unit matrix
- Zero matrix Zero matrices of different sizes are different , Identity matrix is the same .
1.2.2.2 The addition and subtraction of matrices
Premise : Homomorphic matrices
The addition and subtraction of matrix is the addition of corresponding positions .
1.2.2.3 The multiplication of a matrix
Multiply each position by a scalar
1.2.2.4 Multiplication of matrices
Need to meet a certain degree of legitimacy
m x n The matrix of can only be combined with n x p matrix multiplication
The matrix size after multiplication must be m x p
Geometric meaning :
- matrix x A matrix can be thought of as a scaling overlay rotation , Or a form of transformation
- matrix x vector Finally, we get a new vector or vertex coordinate
Compound transformation in matrix :
There can be two calculation orders :
Satisfy the operation law :
Commonly used transformation matrix :
Coordinate transformation in three-dimensional space :
Unity in , Rotation in three-dimensional space follows z、x、y In the order of
1.2.2.5 The transpose of the matrix
The transpose of a matrix has the following properties :
unity When matrix operation is performed on each point of the model in , The operation on the fourth column cannot achieve the purpose of Translation , However, the corresponding effect can be achieved by operating the fourth line at the corresponding position , The reason is Unity Matrix stored procedure , The whole is transposed , So in the subsequent code process , It is suggested to transpose the translation matrix and then perform additional operations .
1.2.2.6 Inverse matrix
Calculation of inverse matrix :
Properties of inverse matrix :
summary
Various geometric meanings in matrix calculation :
- Addition and subtraction : The change of unit vector
- Number multiplication : Scaling of unit vectors
- Matrix multiplication : The zoom 、 rotate 、 Displacement ( High dimension required )、 Oblique cutting 、 Mirror symmetry , The tensile , Various shaft rotation, etc
- Transposition : The positions of rows and columns are interchangeable
- The matrix of the inverse : Changes to a matrix , It can be restored by multiplying the inverse matrix
The matrix formula :
- Addition and subtraction : The shape of the matrix is exactly the same , Add the corresponding positions
- Number multiplication : Multiply each position of the matrix by the scalar
- Matrix multiplication : From right to left . When two matrices are multiplied , The rows of the matrix on the left remain unchanged , Traverse the columns of the matrix on the right in turn and multiply , Fill in the same rows of the matrix on the left in order , Until the matrix traversal on the right is completed , Then jump to the next row of the matrix on the left , Repeat the above operation , Until the last row of the matrix on the left .
therefore , The shape of the two matrices must satisfy that the left side is :m x n, On the right is :n x p, That is, the number of columns of the left matrix is equal to the number of rows of the right matrix . - The matrix of the inverse : The inverse of a matrix is multiplied by the inverse of a matrix to form an identity matrix
边栏推荐
- Leetcode:829. Sum of continuous integers
- 392. judgment subsequence
- SEM of C language_ Tvariable type
- [EI conference] 2022 international joint civil and Offshore Engineering Conference (jccme 2022)
- Appium automation test foundation -- supplement: c/s architecture and b/s architecture description
- 165. compare version numbers
- Asgnet paper and code interpretation 2
- FCN full Convolution Network Understanding and Code Implementation (from pytorch Official Implementation)
- 用小程序的技术优势发展产业互联网
- Pyramid Scene Parsing Network【PSPNet】论文阅读
猜你喜欢
![Pyramid scene parsing network [pspnet] thesis reading](/img/05/4645c8a595083479dee6835620335d.png)
Pyramid scene parsing network [pspnet] thesis reading

Take you through a circuit board, from design to production (dry goods)

Idea plug-in backup table

C语言的sem_t变量类型

Unexpected token o in JSON at position 1, JSON parsing problem

Test function in pychram

idea插件备份表

TEC: Knowledge Graph Embedding with Triple Context

Leetcode 31 next spread, leetcode 64 minimum path sum, leetcode 62 different paths, leetcode 78 subset, leetcode 33 search rotation sort array (modify dichotomy)

FCN全卷积网络理解及代码实现(来自pytorch官方实现)
随机推荐
Processing of menu buttons on the left and contents on the right of the background system page, and double scrolling appears on the background system page
谷粒学院微信扫码登录过程记录以及bug解决
Asgnet paper and code interpretation 2
[TA frost wolf \u may - "hundred people plan"] 2.1 color space
MFC窗口滚动条用法
165. compare version numbers
【快捷键】
【TA-霜狼_may-《百人计划》】2.1 色彩空间
Random seed torch in deep learning manual_ seed(number)、torch. cuda. manual_ seed(number)
pytorch nn.AdaptiveAvgPool2d(1)
Complete knapsack problem
【EI检索】2022年第六届材料工程与先进制造技术国际会议(MEAMT 2022)重要信息会议网址:www.meamt.org会议时间:2022年9月23-25日召开地点:中国南京截稿时间:2
用小程序的技术优势发展产业互联网
The difference between MFC for static libraries and MFC for shared libraries
Leetcode:829. 连续整数求和
【伸手党福利】JSONObject转String保留空字段
318. 最大单词长度乘积
30. Concatenate substrings of all words
The combination of applet container technology and IOT
Use of comment keyword in database