An implementation of kernel.Kernel.