PyTorch随笔-4
單位矩陣:
在線性代數中,n階單位矩陣,是一個n×n{\displaystyle n\times n}n×n 的方形矩陣,其主對角線元素為1,其余元素為0。單位矩陣以InIn{\displaystyle I_{n}}I_nIn?In?表示;如果階數可忽略,或可由前后文確定的話,也可簡記為I{\displaystyle I}I(或者E{\displaystyle E}E)。(在部分領域中,如量子力學,單位矩陣是以粗體字的1表示,否則無法與I{\displaystyle I}I作區別。)
I1=[1],I2=[1001],I3=[100010001],?,In=[10?001?0????00?1]I1=[1],I2=[1001],I3=[100010001],?,In=[10?001?0????00?1]{\displaystyle I_{1}={\begin{bmatrix}1\end{bmatrix}},\ I_{2}={\begin{bmatrix}1&0\\0&1\end{bmatrix}},\ I_{3}={\begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}},\ \cdots ,\ I_{n}={\begin{bmatrix}1&0&\cdots &0\\0&1&\cdots &0\\\vdots &\vdots &\ddots &\vdots \\0&0&\cdots &1\end{bmatrix}}}I_{1}={\begin{bmatrix}1\end{bmatrix}},\ I_{2}={\begin{bmatrix}1&0\\0&1\end{bmatrix}},\ I_{3}={\begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}},\ \cdots ,\ I_{n}={\begin{bmatrix}1&0&\cdots &0\\0&1&\cdots &0\\\vdots &\vdots &\ddots &\vdots \\0&0&\cdots &1\end{bmatrix}} I1?=[1?],?I2?=[10?01?],?I3?=???100?010?001????,??,?In?=??????10?0?01?0??????00?1???????I1?=[1?],?I2?=[10?01?],?I3?=???100?010?001????,??,?In?=??????10?0?01?0??????00?1???????
總結
以上是生活随笔為你收集整理的PyTorch随笔-4的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SpringBoot ——Spring
- 下一篇: @Component和@Configur