Example #1
0
 public virtual void set_sparse_matrix(SWIGTYPE_p_shogun__SGSparseVectorT_short_t matrix, int num_feat, int num_vec)
 {
     modshogunPINVOKE.File_set_sparse_matrix__SWIG_4(swigCPtr, SWIGTYPE_p_shogun__SGSparseVectorT_short_t.getCPtr(matrix), num_feat, num_vec);
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 public override void get_sparse_matrix(SWIGTYPE_p_shogun__SGSparseVectorT_short_t matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec)
 {
     modshogunPINVOKE.BinaryFile_get_sparse_matrix__SWIG_4(swigCPtr, SWIGTYPE_p_shogun__SGSparseVectorT_short_t.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }