🔰matrix
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
LaTeX ⟩ matrix
\begin{matrix} a & b \\ c & d \end{matrix} % matrix
\begin{bmatrix} a & b \\ c & d \end{bmatrix} % [ ... ]
\begin{vmatrix} a & b \\ c & d \end{vmatrix} % | ... |
\begin{pmatrix} a & b \\ c & d \end{pmatrix} % ( ... )
% diagonal matrix
\begin{bmatrix}
a_{1} & & \\
& \ddots & \\
& & a_{n}
\end{bmatrix}
% V matrix
\begin{Vmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33}
\end{Vmatrix}
% B matrix
\begin{Bmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33}
\end{Bmatrix}
👉 矩陣
% big matrix
\begin{bmatrix}
a_{11} & a_{12} & \cdots & a_{1n} \\
a_{21} & a_{22} & \cdots & a_{2n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{m1} & a_{m2} & \cdots & a_{mn}
\end{bmatrix}
\underbrace{\begin{pmatrix}
& & \vdots & \\
a_{i1} & a_{i2} & \cdots & a_{ip} \\
& & \vdots &
\end{pmatrix}}_{m\times p\ \text{matrix}}
\underbrace{\begin{pmatrix}
& b_{1j} & \\
& b_{2j} & \\
\cdots & \vdots & \cdots \\
& b_{pj} &
\end{pmatrix}}_{p\times n\ \text{matrix}}
=
\underbrace{\begin{pmatrix}
& \vdots & \\
\cdots & c_{ij} & \cdots \\
& \vdots &
\end{pmatrix}}_{m\times n\ \text{matrix}}
\begin{pmatrix}
& & \vdots & \\
a_{i1} & a_{i2} & \cdots & a_{ip}\\
& & \vdots &
\end{pmatrix}
\begin{pmatrix}
& b_{1j} & \\
& b_{2j} & \\
\cdots & \vdots & \cdots \\
& b_{pj} &
\end{pmatrix}
\begin{matrix} a & b \\ c & d \end{matrix}
\begin{bmatrix} a & b \\ c & d \end{bmatrix}
\begin{vmatrix} a & b \\ c & d \end{vmatrix}
\begin{pmatrix} a & b \\ c & d \end{pmatrix}
% zero matrix
\begin{bmatrix}
0 & 0 & 0 \\
0 & 0 & 0 \\
0 & 0 & 0
\end{bmatrix}
% identity matrix
\begin{bmatrix}
1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 1
\end{bmatrix}
% row matrix
\begin{bmatrix} x & y & z \end{bmatrix}
\begin{bmatrix} a_1 & \cdots & a_n \end{bmatrix}
% column matrix
\begin{bmatrix} x \\ y \\ z \end{bmatrix}
\begin{bmatrix} a_1 \\ \vdots \\ a_n \end{bmatrix}
% dot product as matrix multiplication
\begin{bmatrix} u_1 & u_2 & u_3 \end{bmatrix}
\begin{bmatrix} v_1 \\ v_2 \\ v_3 \end{bmatrix}
% cross product
\begin{vmatrix}
\mathbf{i} & \mathbf{j} & \mathbf{k} \\
u_1 & u_2 & u_3 \\
v_1 & v_2 & v_3
\end{vmatrix}
% linear transformation
\begin{bmatrix}
a_1 & b_1 & c_1 \\
a_2 & b_2 & c_2 \\
a_3 & b_3 & c_3
\end{bmatrix}
\begin{bmatrix} x \\ y \\ z \end{bmatrix}