示例#1
0
 public virtual void set_sparse_matrix(ShortRealSparseVector matrix, int num_feat, int num_vec)
 {
     modshogunPINVOKE.File_set_sparse_matrix__SWIG_6(swigCPtr, ShortRealSparseVector.getCPtr(matrix), num_feat, num_vec);
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#2
0
 public override void get_sparse_matrix(ShortRealSparseVector matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec)
 {
     modshogunPINVOKE.BinaryFile_get_sparse_matrix__SWIG_6(swigCPtr, ShortRealSparseVector.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public ShortRealSparseVector(ShortRealSparseVector orig) : this(modshogunPINVOKE.new_ShortRealSparseVector__SWIG_5(ShortRealSparseVector.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public ShortRealSparseMatrix(ShortRealSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_ShortRealSparseMatrix__SWIG_2(ShortRealSparseVector.getCPtr(vecs), num_feat, num_vec), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#5
0
 public SparseShortRealFeatures(ShortRealSparseVector src, int num_feat, int num_vec) : this(modshogunPINVOKE.new_SparseShortRealFeatures__SWIG_3(ShortRealSparseVector.getCPtr(src), num_feat, num_vec), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }