Compute Quadratic Form
Efficiently computes x′Axx' A xx′Ax - or in R-notation:
qform(x, A)
x
A
a numerical scalar
Length of x should equal the number of rows and columns of A.
Useful links