compute the dot product of two arrays of samples
Arrays of real or complex values
The DotProduct(A, B) command returns the dot product of the Arrays A and B. This is defined by the expression
where N is the number of elements of A and B.
Note that the element-wise conjugate is not used, even for complex Arrays.
Before the code performing the computation runs, Maple converts each input Array to a hardware datatype, first attempting float and subsequently complex, unless it already has one of these datatypes. For this reason, it is most efficient the input Arrays have one of these datatypes beforehand.
The Arrays A and B must have the same number of elements.
The SignalProcessing[DotProduct] command is thread-safe as of Maple 17.
For more information on thread safety, see index/threadsafe.
a ≔ Array⁡1,2,3,4,5,'datatype'='float'8
b ≔ Array⁡5,4,3,2,1,'datatype'='float'8
The SignalProcessing[DotProduct] command was introduced in Maple 17.
For more information on Maple 17 changes, see Updates in Maple 17.
Download Help Document
What kind of issue would you like to report? (Optional)