prodVA: Product of three dimentional array in vector.

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/prodVA.R View source: R/mat_oper.R

Description

Array(n*p*p)*Vector(n*1) is (p*p) matrix equal the sum of vector multiple first dimention of array.

Usage

1
prodVA(ary, vector)

Arguments

ary

(n*p*P) numeric array.

vector

(p*p) matrix.

Details

It can be used to multiple a (n*p*p) Hessian into (n*1) vector of residuals.

Value

(p*p) matrix.

Note

It is used in optimization and loss functions, may not explicitly called by user. May be used in defining loss functions by user.

Author(s)

Hossein Riazoshams, May 2014. Email: riazihosein@gmail.com URL http://www.riazoshams.com/nlr/

References

Riazoshams H, Midi H, and Ghilagaber G, 2018,. Robust Nonlinear Regression, with Application using R, Joh Wiley and Sons.

See Also

%3d*m%, %m3d%

Examples

1
2
3
4
5
## The function is currently defined as
"prodVA"
a=array(1:8,c(2,2,2))
b=c(2,3)
d=prodVA(a,b)

nlr documentation built on July 31, 2019, 5:09 p.m.

Related to prodVA in nlr...