

[[1]]
             [,1]      [,2]
[1,]  0.003632559 0.2190629
[2,] -2.090772847 0.2190629

[[2]]
            [,1]       [,2]
[1,] 0.004278991 0.04337005
[2,] 0.190723602 0.04337005

[[3]]
           [,1]        [,2]
[1,] 0.01237827 -0.01544811
[2,] 0.06452200 -0.01544811

g<-c(1,2,3)

function(g,hessianList){
   for(i in 1:3){
         ft1<-g[2]*hessianList[[2]]
         ft2<-sum(ft1)
         ft2
   }
}

can u please help me find out what is the problem with this code

i want to multiply matrix 1-3 by a vector g and sum the result.


thanks
	[[alternative HTML version deleted]]

