当前位置:网站首页>[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
边栏推荐
- C语言的sem_t变量类型
- 小程序容器技术与物联网IoT的结合点
- Explain spark operation mode in detail (local+standalone+yarn)
- Use selenium automated test tool to climb the enrollment score line and ranking of colleges and universities related to the college entrance examination
- 241. 为运算表达式设计优先级
- Grid system in bootstrap
- [nine day training] content III of the problem solution of leetcode question brushing Report
- 程序员女友给我做了一个疲劳驾驶检测
- 【TA-霜狼_may-《百人计划》】2.2 模型与材质空间
- Access denied for user ‘ODBC‘@‘localhost‘ (using password: NO)
猜你喜欢
FCN全卷积网络理解及代码实现(来自pytorch官方实现)
Use selenium automated test tool to climb the enrollment score line and ranking of colleges and universities related to the college entrance examination
pytorch nn.AdaptiveAvgPool2d(1)
【TA-霜狼_may-《百人计划》】1.2.1 向量基础
4. [WebGIS practice] software operation chapter - data import and processing
[deep learning] activation function (sigmoid, etc.), forward propagation, back propagation and gradient optimization; optimizer. zero_ grad(), loss. backward(), optimizer. Function and principle of st
Research on target recognition and tracking based on 3D laser point cloud
Leetcode 128 longest continuous sequence (hash set)
谷粒学院微信扫码登录过程记录以及bug解决
Its appearance makes competitors tremble. Interpretation of Sony vision-s 02 products
随机推荐
Idea plug-in backup table
Blueprism registration, download and install -rpa Chapter 1
pytorch训练深度学习网络设置cuda指定的GPU可见
Database DDL (data definition language) knowledge points
Are you still wasting brain cells for self-study? This interview note is definitely the ceiling of station C
【TA-霜狼_may-《百人计划》】2.2 模型与材质空间
Error: plug ins declaring extensions or extension points must set the singleton directive to true
166. fractions to decimals
【TA-霜狼_may-《百人计划》】1.1 渲染流水线
[深度学习]激活函数(Sigmoid等)、前向传播、反向传播和梯度优化;optimizer.zero_grad(), loss.backward(), optimizer.step()的作用及原理
[EI conference] 2022 international joint civil and Offshore Engineering Conference (jccme 2022)
Promql select time series
盘点华为云GaussDB(for Redis)六大秒级能力
[deep learning] activation function (sigmoid, etc.), forward propagation, back propagation and gradient optimization; optimizer. zero_ grad(), loss. backward(), optimizer. Function and principle of st
【TA-霜狼_may-《百人计划》】1.2.3 MVP矩阵运算
【EI会议】2022年第三届纳米材料与纳米技术国际会议(NanoMT 2022)
复习专栏之---消息队列
静态库使用MFC和共享库使用MFC的区别
409. longest palindrome
RSN:Learning to Exploit Long-term Relational Dependencies in Knowledge Graphs