SignalProcessing - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Science and Engineering : Signal Processing : Computing Statistics : SignalProcessing/DotProduct

SignalProcessing

  

DotProduct

  

compute the dot product of two arrays of samples

 

Calling Sequence

Parameters

Description

Thread Safety

Examples

Compatibility

Calling Sequence

DotProduct(A, B)

Parameters

A, B

-

Arrays of real or complex values

Description

• 

The DotProduct(A, B) command returns the dot product of the Arrays A and B. This is defined by the expression

k=1NAkBk

  

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.

Thread Safety

• 

The SignalProcessing[DotProduct] command is thread-safe as of Maple 17.

• 

For more information on thread safety, see index/threadsafe.

Examples

withSignalProcessing:

aArray1,2,3,4,5,'datatype'='float'8

a:=1.2.3.4.5.

(1)

bArray5,4,3,2,1,'datatype'='float'8

b:=5.4.3.2.1.

(2)

DotProducta,b

35.

(3)

Compatibility

• 

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

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam