binaryOp_3dm: Product array to matrix

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

Description

Binary operator, compute multiplication of three dimentional array to a vector, sum over first dimention of array to the vector. Technically cross section values in first dimention are equal. It use for computation purposes in optimizations.

Usage

1
  ary %3d*m% vector

Arguments

ary

(n*p*p) numeric array.

vector

(n*1) numeric vector.

Details

Three dimentional array multiple by vector, first dimention of array and vector related to sample data, multiple of them and sum is a fixed value will be returned back.

Value

result(:,i,j) = sum (ary[,i,j]*vector), but repeat in all cross section, thus the cross section values are equal.

Note

It use for computation purposes in optimization, might not be called directly by user.

Author(s)

Hossein Riazoshams, May 2013. 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

%m3d%, prodVA

Examples

1
2
3
4
5
6
7
8
  ##---- Should be DIRECTLY executable !! ----
  ##-- ==>  Define data, use random,
  ##--	or do  help(data=index)  for the standard data sets.
  ## The function is currently defined as
  "%3d*m%"
  a=array(1:8,c(2,2,2))
  b=3:4
  d=a %3d*m% b

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

Related to binaryOp_3dm in nlr...