does \(x \%\ast\% D \%\ast\% t(x)\) a bit faster

quadform(D, x, y)

Arguments

D

square symmetric matrix

x

vector 1

y

vector 2

Value

square symmetrix matrix