
DotProduct |
ptolemy.domains.sdf.lib.DotProduct |
Compute the dot product of two arrays or matrices. This actor has two
input ports, from which it receives two ArrayTokens or two Matrix
Tokens. The elements of the ArrayTokens or MatrixTokens must be of
type ScalarToken. The output is the dot product of the two arrays or
matrices.
This actor requires that each input port have a token upon
firing. On each firing, it produces exactly one token, which is of
type ScalarToken.
Author(s): Jeff Tsay, Paul Whitaker, Adam Cataldo
Version:$Id: DotProduct.java,v 1.40 2006/05/08 04:48:47 neuendor Exp $
Pt.Proposed Rating:Yellow (pwhitake)
Pt.Accepted Rating:Red (acataldo)
input1
The first input port. This has type ArrayToken. The elements of
the ArrayToken must be of type ScalarToken.
input2
The second input port. This has type ArrayToken. The elements of
the ArrayToken must be of type ScalarToken.
output
The output port, which has type ScalarToken.