func8: $x^T A^-1 x$ and GIEMO

Description Usage Arguments Details 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
func8(a, x)

Arguments

a

numeric matrix

x

vector

Details

Follow GIEMO

Value

scalar

Examples

1
2
3
4
5
x <- c(1,2,3,4)
a <-matrix(rnorm(16),nc=4,nr=4)

result8 <- func8(a, x)
result8

XINFENG66/3479247293 documentation built on May 25, 2019, 2:23 p.m.