Пример #1
0
 public void set_callback_function(MKL m, SWIGTYPE_p_f_p_shogun__CMKL_p_q_const__double_q_const__double__bool cb)
 {
     modshogunPINVOKE.SVM_set_callback_function(swigCPtr, MKL.getCPtr(m), SWIGTYPE_p_f_p_shogun__CMKL_p_q_const__double_q_const__double__bool.getCPtr(cb));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
    public static bool perform_mkl_step_helper(MKL mkl, SWIGTYPE_p_double sumw, double suma)
    {
        bool ret = modshogunPINVOKE.MKL_perform_mkl_step_helper(MKL.getCPtr(mkl), SWIGTYPE_p_double.getCPtr(sumw), suma);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }