35 #ifndef SHARK_MODELS_KERNELS_SCALED_KERNEL_H 36 #define SHARK_MODELS_KERNELS_SCALED_KERNEL_H 48 template<
class InputType=RealVector>
72 {
return "ScaledKernel"; }
98 const base_type*
base()
const {
102 double eval(ConstInputReference x1, ConstInputReference x2)
const {
107 void eval(ConstBatchInputReference x1, ConstBatchInputReference x2, RealMatrix& result)
const{
112 void eval(ConstBatchInputReference x1, ConstBatchInputReference x2, RealMatrix& result,
State& state)
const{
119 ConstBatchInputReference batchX1,
120 ConstBatchInputReference batchX2,
121 RealMatrix
const& coefficients,
130 ConstBatchInputReference batchX1,
131 ConstBatchInputReference batchX2,
132 RealMatrix
const& coefficientsX2,
134 BatchInputType& gradient
151 ar << const_cast<AbstractKernelFunction<InputType>
const&>(*m_base);