Split definition of SVM kernel cost function