qform function

Compute Quadratic Form

Compute Quadratic Form

Efficiently computes xAxx' A x - or in R-notation:

qform(x, A)

Arguments

  • x: a numeric vector
  • A: a symmetric numeric matrix

Returns

a numerical scalar

Details

Length of x should equal the number of rows and columns of A.

  • Maintainer: Rune Haubo Bojesen Christensen
  • License: GPL (>= 2)
  • Last published: 2020-10-23