Double Integration

Hi, everyone,

I wonder if there is a function in Pytorch like “scipy.integrate.dblquad” to calculate the double integration of a given function.

For example,

given f(x,y)=2x+2y

and we calculate ∫∫f(x,y)dxdy with pytorch

Thanks

Hi,

I don’t think we have such function no.

Note that if you don’t need gradients through that computation, you can just translate the Tensor to numpy and use the corresponding scipy function.

Hi, Thanks , for now, we program a Gaussian integral method with torch for the calculation.

1 Like