7 #ifndef NIHU_P2P_HPP_INCLUDED
8 #define NIHU_P2P_HPP_INCLUDED
19 template <
class Kernel>
24 typedef Kernel kernel_t;
25 typedef typename kernel_t::test_input_t test_input_t;
26 typedef typename kernel_t::trial_input_t trial_input_t;
27 typedef typename kernel_t::result_t result_t;
29 p2p(kernel_t
const &kernel)
34 size_t rows(test_input_t
const &)
const
39 size_t cols(trial_input_t
const &)
const
44 result_t operator()(test_input_t
const &x, trial_input_t
const &y)
const
46 return m_kernel(x, y);
49 template <
class TSI,
class TRI>
50 result_t operator()(TSI
const &tsi, TRI
const &tri)
const
52 return m_kernel(test_input_t(tsi), trial_input_t(tri));
55 kernel_t
const &get_kernel()
const