예제 #1
0
 public IntSparseMatrix(IntSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_IntSparseMatrix__SWIG_2(IntSparseVector.getCPtr(vecs), num_feat, num_vec), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #2
0
 public IntSparseVector(IntSparseVector orig) : this(modshogunPINVOKE.new_IntSparseVector__SWIG_5(IntSparseVector.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #3
0
 public SparseIntFeatures(IntSparseVector src, int num_feat, int num_vec) : this(modshogunPINVOKE.new_SparseIntFeatures__SWIG_3(IntSparseVector.getCPtr(src), num_feat, num_vec), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #4
0
 public virtual void set_sparse_matrix(IntSparseVector matrix, int num_feat, int num_vec)
 {
     modshogunPINVOKE.File_set_sparse_matrix__SWIG_3(swigCPtr, IntSparseVector.getCPtr(matrix), num_feat, num_vec);
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #5
0
 public override void get_sparse_matrix(IntSparseVector matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec)
 {
     modshogunPINVOKE.BinaryFile_get_sparse_matrix__SWIG_3(swigCPtr, IntSparseVector.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
    public IntSparseVector get_vector()
    {
        IntSparseVector ret = new IntSparseVector(modshogunPINVOKE.StreamingSparseIntFeatures_get_vector(swigCPtr), true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
예제 #7
0
    public IntSparseVector get_sparse_feature_vector(int num)
    {
        IntSparseVector ret = new IntSparseVector(modshogunPINVOKE.SparseIntFeatures_get_sparse_feature_vector(swigCPtr, num), true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
예제 #8
0
 public IntSparseVector(IntSparseVector orig) : this(modshogunPINVOKE.new_IntSparseVector__SWIG_5(IntSparseVector.getCPtr(orig)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #9
0
 internal static HandleRef getCPtr(IntSparseVector obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
예제 #10
0
 public IntSparseMatrix(IntSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_IntSparseMatrix__SWIG_2(IntSparseVector.getCPtr(vecs), num_feat, num_vec), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #11
0
 public override void set_sparse_matrix(IntSparseVector matrix, int num_feat, int num_vec) {
   modshogunPINVOKE.BinaryFile_set_sparse_matrix__SWIG_3(swigCPtr, IntSparseVector.getCPtr(matrix), num_feat, num_vec);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #12
0
 internal static HandleRef getCPtr(IntSparseVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
예제 #13
0
파일: File.cs 프로젝트: Anshul-Bansal/gsoc
 public virtual void get_sparse_matrix(IntSparseVector matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec) {
   modshogunPINVOKE.File_get_sparse_matrix__SWIG_3(swigCPtr, IntSparseVector.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
 public IntSparseVector get_vector() {
   IntSparseVector ret = new IntSparseVector(modshogunPINVOKE.StreamingSparseIntFeatures_get_vector(swigCPtr), true);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }