Learn R Programming

nlr (version 0.1-3)

prodVA: Product of three dimentional array in vector.

Description

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

Usage

prodVA(ary, vector)

Arguments

ary

(n*p*P) numeric array.

vector

(p*p) matrix.

Value

(p*p) matrix.

Details

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

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

Run this code
# NOT RUN {
## The function is currently defined as
"prodVA"
a=array(1:8,c(2,2,2))
b=c(2,3)
d=prodVA(a,b)
# }

Run the code above in your browser using DataLab