R = dot(A, B)
R = dot(A, B, dim)
| Paramètre | Description |
|---|---|
| A, B | tableaux numériques. |
| dim | scalaire entier positif : Dimension le long de laquelle opérer. |
| Paramètre | Description |
|---|---|
| R | Produit scalaire. |
R = dot(A, B) retourne le produit scalaire de A et B.
Pour les vecteurs réels
$$\mathbf{a}$$et
$$\mathbf{b}$$de longueur
$$n$$:
$$\mathbf{a} \cdot \mathbf{b} = \sum_{i=1}^{n} a_i b_i = a_1 b_1 + a_2 b_2 + \cdots + a_n b_n$$Pour les vecteurs complexes, le produit scalaire est :
$$\mathbf{a} \cdot \mathbf{b} = \sum_{i=1}^{n} \overline{a_i} b_i$$où
$$\overline{a_i}$$dénote le conjugué complexe de
$$a_i$$A = [1 2 3;4 5 6;7 8 9];
B = [9 8 7;6 5 4;3 2 1];
R = dot(A, B)
R = dot(A, B, 2)
| Version | Description |
|---|---|
| 1.0.0 | version initiale |