\[\langle g,h\rangle=\int_{0}^{K}\!\!\int_{0}^{{K^{\prime}}}w(s,t)g(s,t)h(s,t)\,%
\mathrm{d}t\,\mathrm{d}s,\]