SignalProcessing
DotProduct
compute the dot product of two arrays of samples
Calling Sequence
Parameters
Description
Thread Safety
Examples
Compatibility
DotProduct(A, B)
A, B
-
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
∑k=1N⁡Ak⁢Bk
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[8] and subsequently complex[8], 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.
with⁡SignalProcessing:
a≔Array⁡1,2,3,4,5,datatype=float8
a≔1.2.3.4.5.
b≔Array⁡5,4,3,2,1,datatype=float8
b≔5.4.3.2.1.
DotProduct⁡a,b
35.
The SignalProcessing[DotProduct] command was introduced in Maple 17.
For more information on Maple 17 changes, see Updates in Maple 17.
See Also
Array
LinearAlgebra[DotProduct]
with
Download Help Document