Пример #1
0
 public SparseRealFeatures(RealSparseVector src, int num_feat, int num_vec) : this(modshogunPINVOKE.new_SparseRealFeatures__SWIG_3(RealSparseVector.getCPtr(src), num_feat, num_vec), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
 public RealSparseMatrix(RealSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_RealSparseMatrix__SWIG_2(RealSparseVector.getCPtr(vecs), num_feat, num_vec), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #3
0
 public RealSparseVector(RealSparseVector orig) : this(modshogunPINVOKE.new_RealSparseVector__SWIG_5(RealSparseVector.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #4
0
 public virtual void set_sparse_matrix(RealSparseVector matrix, int num_feat, int num_vec)
 {
     modshogunPINVOKE.File_set_sparse_matrix__SWIG_7(swigCPtr, RealSparseVector.getCPtr(matrix), num_feat, num_vec);
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #5
0
 public override void get_sparse_matrix(RealSparseVector matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec)
 {
     modshogunPINVOKE.BinaryFile_get_sparse_matrix__SWIG_7(swigCPtr, RealSparseVector.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #6
0
    public RealSparseVector get_vector()
    {
        RealSparseVector ret = new RealSparseVector(modshogunPINVOKE.StreamingSparseRealFeatures_get_vector(swigCPtr), true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #7
0
    public RealSparseVector get_sparse_feature_vector(int num)
    {
        RealSparseVector ret = new RealSparseVector(modshogunPINVOKE.SparseRealFeatures_get_sparse_feature_vector(swigCPtr, num), true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #8
0
 public override void set_sparse_matrix(RealSparseVector matrix, int num_feat, int num_vec) {
   modshogunPINVOKE.BinaryFile_set_sparse_matrix__SWIG_7(swigCPtr, RealSparseVector.getCPtr(matrix), num_feat, num_vec);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #9
0
 public RealSparseMatrix(RealSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_RealSparseMatrix__SWIG_2(RealSparseVector.getCPtr(vecs), num_feat, num_vec), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #10
0
 public RealSparseVector(RealSparseVector orig) : this(modshogunPINVOKE.new_RealSparseVector__SWIG_5(RealSparseVector.getCPtr(orig)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #11
0
 internal static HandleRef getCPtr(RealSparseVector obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
 public RealSparseVector get_vector() {
   RealSparseVector ret = new RealSparseVector(modshogunPINVOKE.StreamingSparseRealFeatures_get_vector(swigCPtr), true);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Пример #13
0
 public SparseRealFeatures(RealSparseVector src, int num_feat, int num_vec) : this(modshogunPINVOKE.new_SparseRealFeatures__SWIG_3(RealSparseVector.getCPtr(src), num_feat, num_vec), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #14
0
 public RealSparseVector get_sparse_feature_vector(int num) {
   RealSparseVector ret = new RealSparseVector(modshogunPINVOKE.SparseRealFeatures_get_sparse_feature_vector(swigCPtr, num), true);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Пример #15
0
 public virtual void get_sparse_matrix(RealSparseVector matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec) {
   modshogunPINVOKE.File_get_sparse_matrix__SWIG_7(swigCPtr, RealSparseVector.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #16
0
 internal static HandleRef getCPtr(RealSparseVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }