Displaying 1 result from an estimated 1 matches for "hessian_lambda".
2011 Mar 28
1
Help with multidimensional array
I have the following situation.
H12 is an array of dimension (n,k,m) and hessian_lambda is a numeric
of length m.
I need to multiply each matrix H12[,,1], H12[,,2], ..., H12[,m] by
hessian_lambda[1], hessian_lambda[2], ..., hessian_lambda[m],
respectively, and then add the resulting (n,k) matrices. What I am
using at the moment is the following code:
H <- matrix(0, n, k)
for(j i...