qform: Compute Quadratic Form

Description Usage Arguments Details Value

View source: R/utils.R

Description

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

Usage

1
qform(x, A)

Arguments

x

a numeric vector

A

a symmetric numeric matrix

Details

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

Value

a numerical scalar


runehaubo/lmerTestR documentation built on Oct. 24, 2020, 12:20 p.m.