abstract 2d kernel parameterized by rep class R