Fully differentiable boundary element solver for hydrodynamic sensitivity analysis of wave-structure interactions