Calculate the value of a quadratic form

quad_form(A, x)

Arguments

A

Square n-by-n matrix

x

Vector of length n

Value

Double value of the quadratic form x'Ax