当前位置:网站首页>[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
边栏推荐
- 8. string conversion integer (ATOI)
- 盘点华为云GaussDB(for Redis)六大秒级能力
- 【TA-霜狼_may-《百人计划》】1.1 渲染流水线
- TEC: Knowledge Graph Embedding with Triple Context
- 242. valid Letter heteronyms
- [daily training] 1175 Prime permutation
- [nine day training] content III of the problem solution of leetcode question brushing Report
- 4. [WebGIS practice] software operation chapter - data import and processing
- [party benefits] jsonobject to string, leave blank
- pytorch训练深度学习网络设置cuda指定的GPU可见
猜你喜欢
【TA-霜狼_may-《百人计划》】2.1 色彩空间
访问阿里云存储的图片URL实现在网页直接预览略缩图而不直接下载
Pyramid scene parsing network [pspnet] thesis reading
[小样本分割]论文解读Prior Guided Feature Enrichment Network for Few-Shot Segmentation
SEM of C language_ Tvariable type
The combination of applet container technology and IOT
快速筛选打卡时间日期等数据:EXCEL筛选查找某一时间点是否在某一时间段内
Appium自动化测试基础--补充:C/S架构和B/S架构说明
Pytorch training deep learning network settings CUDA specified GPU visible
Appium fundamentals of automated testing - basic principles of appium
随机推荐
用小程序的技术优势发展产业互联网
318. Maximum word length product
Unexpected token o in JSON at position 1 ,JSON解析问题
【TA-霜狼_may-《百人计划》】1.3纹理的秘密
【TA-霜狼_may-《百人计划》】2.3 常用函数介绍
小程序容器技术与物联网IoT的结合点
Pytorch training deep learning network settings CUDA specified GPU visible
171. Excel 表列序号
复习专栏之---消息队列
AfxMessageBox和MessageBox的用法
[TA frost wolf \u may - "hundred people plan"] 2.1 color space
Cygwin的下载和安装配置
Asgnet paper and code interpretation 2
392. judgment subsequence
Unexpected token o in JSON at position 1, JSON parsing problem
The problem of integrating Alibaba cloud SMS: non static methods cannot be referenced from the static context
431. 将 N 叉树编码为二叉树 DFS
静态库使用MFC和共享库使用MFC的区别
pytorch nn. AdaptiveAvgPool2d(1)
205. isomorphic string