I have the following problem:
My C ++ code can calculate two functions
f1 (I1, I2, I3, I4)
2 (J1, J2)
for each set {i1, i2, i3, i4} I get some value of f1 and for each set of {j1, j2} we get some value of f2.
the sets {i1, i2, i3, i4} and {j1, j2} are defined on the FIXED grid with some constant sampling step "h".
I need to calculate in mathematical language the integral F3 (x1, x3) = Integral [f1 (x1, x2, x3, x4) * f2 (x3, x4) dx3 dx4]
Simple summation is not good enough, since f2 has many jumps.
Is there a C ++ library that can perform such an integration? Or some algorithm that is easy to implement (I'm not very good in C ++)
many thanks