dot

Produit scalaire.

📝 Syntaxe

  • R = dot(A, B)

  • R = dot(A, B, dim)

📥 Argument d'entrée

  • A, B - tableaux numériques.

  • dim - scalaire entier positif : Dimension le long de laquelle opérer.

📤 Argument de sortie

  • R - Produit scalaire.

📄 Description

R = dot(A, B) retourne le produit scalaire de A et B.

Pour les vecteurs réels a\mathbf{a}

et b\mathbf{b}

de longueur nn

: ab=i=1naibi=a1b1+a2b2++anbn\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 : ab=i=1naibi\mathbf{a} \cdot \mathbf{b} = \sum_{i=1}^{n} \overline{a_i} b_i

ai\overline{a_i}

dénote le conjugué complexe de aia_i

📚 Bibliographie

https://en.wikipedia.org/wiki/Dot_product

💡 Exemple

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)

🔗 Voir aussi

conj.

🕔 Historique

Version
📄 Description

1.0.0

version initiale

Last updated

Was this helpful?