Matrices - Latex

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

Logo Devmath
devmath

This article has been written by Robin Pourtaud ([email protected]) and published on September 11, 2021.
The content of this article is licensed under CC BY NC 4.0 : You can freely share and adapt the content for non-commercial purposes as long as you give appropriate credit and provide a link to the license. In my case, the link to the original article is enough. Confidentiality if relevant: https://devmath.fr/page/confidentialite/

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}$$