use to_arena() and cwiseProduct() instead of array summation
use to_arena() and cwiseProduct() instead of array summation

stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math