I am not sure I understand what you are trying to compute,
but if you want to evaluate MyConvolve(Integrand,s)
,
where s
takes all the values in SomeMatrix
,
then apply
is sufficient.
sapply( SomeMatrix, function(s) MyConvolve( Integrand, s )$value )
However, the dimensions of the matrix are lost. You can recover them as follows:
result <- SomeMatrix
result[] <- sapply( SomeMatrix, function(s) MyConvolve( Integrand, s )$value )