Back to Linear Algebra
dot
Dot product
Syntax
c = dot(a, b)
Description
Computes the dot product of two arrays. For 1-D arrays, returns the inner product. For 2-D arrays, performs matrix multiplication.
Parameters
| Name | Description |
|---|---|
| a | First input array |
| b | Second input array |
Returns
Dot product result