Matrices - Latex

Cet article traite de la génération des différents types de matrices en Latex.

Différents types de matrices

Cet article s’applique aussi bien aux matrices qu’aux vecteurs, un vecteur étant une matrice unidimensionnelle.

Avant tout, nous aurez besoin du package “amspackage” :

\usepackage{amsmath}

Seules la génération des matrices suivantes sera traité dans cet article :

$$\begin{pmatrix}1 & 2 \cr 3 & 4 \cr 5 & 6\end{pmatrix}\ \begin{bmatrix}1 & 2 \cr 3 & 4 \cr 5 & 6\end{bmatrix}\ \begin{Bmatrix}1 & 2 \cr 3 & 4 \cr 5 & 6\end{Bmatrix}\ \begin{matrix}1 & 2 \cr 3 & 4 \cr 5 & 6\end{matrix}\ \begin{vmatrix}1 & 2 \cr 3 & 4 \cr 5 & 6\end{vmatrix}\ \begin{Vmatrix}1 & 2 \cr 3 & 4 \cr 5 & 6\end{Vmatrix}$$

Matrices à parenthèses

Code LaTeX

\begin{pmatrix}
1 & 2 \\
3 & 4 \\
5 & 6
\end{pmatrix}

Rendu

$$ \begin{pmatrix} 1 & 2 \cr 3 & 4 \cr 5 & 6 \end{pmatrix} $$

Bonjour

Matrices à crochets

Code LaTeX

\begin{bmatrix}
1 & 2 \\
3 & 4 \\
5 & 6
\end{bmatrix}

Rendu

$$\begin{bmatrix}1 & 2 \cr 3 & 4 \cr 5 & 6\end{bmatrix}$$

Matrices à accolades

Code LaTeX

\begin{Bmatrix}
1 & 2 \\
3 & 4 \\
5 & 6
\end{Bmatrix}

Rendu

$$\begin{Bmatrix}1 & 2 \cr 3 & 4 \cr 5 & 6\end{Bmatrix}$$

Matrices sans paranthèse

Code LaTeX

\begin{matrix}
1 & 2 \\
3 & 4 \\
5 & 6
\end{matrix}

Rendu

$$\begin{matrix}1 & 2 \cr 3 & 4 \cr 5 & 6\end{matrix}$$

Matrices normés (norme d’une matrice)

Code LaTeX

\begin{Vmatrix}
1 & 2 \\
3 & 4 \\
5 & 6
\end{Vmatrix}

Rendu

$$\begin{Vmatrix}1 & 2 \cr 3 & 4 \cr 5 & 6\end{Vmatrix}$$

Matrices déterminants (ou valeur absolue de matrice)

Code LaTeX

\begin{vmatrix}
1 & 2 \\
3 & 4 \\
5 & 6
\end{vmatrix}

Rendu

$$\begin{vmatrix}1 & 2 \cr 3 & 4 \cr 5 & 6\end{vmatrix}$$