Inner product.
Series and Vectors
Computes the inner product of x and y.
Syntax: @inner(x[, y, s])
x: series, vector
y: (optional) series, vector
s: (optional) sample string or object when x and y are series and assigning to series
Return: number
Computes
given x and the optional input y. If the optional argument is omitted, computes the inner product of x with itself so that it is equivalent to @sumsq if the second argument omitted.
EViews will use the current or specified workfile sample.
Matrix
Syntax: @inner(x)
x: matrix, sym
Return: number
Computes the symmetric matrix
Examples
If X and Y are series of length 5 whose elements are 1, 2, 3, 4, 5, and 6, 7, 8, 9, 10, respectively, then
= @inner(x, y)
returns 130.
The commands
matrix m = @mnrnd(5, 7)
sym S = @inner(m)
creates a
matrix M filled with normal random variables and the
symmetric matrix S containing
.
Cross-references
See also
@prod,
@sum, and
@sumsq.