Skip to contents

Compute a quadratic form (x'Ax)

Usage

qd(x, A)

Arguments

x

A vector

A

A matrix compatible with x

Examples

x <- rnorm(10)
A <- matrix(rnorm(100), 10, 10)
qd(x, A)
#> [1] -3.716766