Hello,
I am new to mata. I made an array of matrices in mata and I want to sum all the matrices in the array.
In R, the function apply(x, c(1,2), sum) does this.
Can anyone here help.
Thank you!
I am new to mata. I made an array of matrices in mata and I want to sum all the matrices in the array.
In R, the function apply(x, c(1,2), sum) does this.
Can anyone here help.
Thank you!
Comment