calculate3: Compute Transpose And Inverse

Description Usage Arguments Value Examples

Description

Given a numeric matrix A and a numeric vector 'x', calculates $x^T A^-1 x$ Note that this only makes sense when A is a square matrix and the dimension of x is the same as the dimensions of the row and column dimensions of A

Usage

1
calculate3(a, x)

Arguments

a

matrix

x

vector

Value

scalar

Examples

1
2
3
x <- c(1,2,3,4)
mtx <-matrix(rnorm(16),nc=4,nr=4)
result8 <- calculate3(mtx, x)

jackingg/ChangbaiLiTools documentation built on May 25, 2019, 6:22 p.m.