Exemplo n.º 1
0
 public SparseCharFeatures(CharSparseVector src, int num_feat, int num_vec) : this(modshogunPINVOKE.new_SparseCharFeatures__SWIG_3(CharSparseVector.getCPtr(src), num_feat, num_vec), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 2
0
 public CharSparseMatrix(CharSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_CharSparseMatrix__SWIG_2(CharSparseVector.getCPtr(vecs), num_feat, num_vec), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 3
0
 public CharSparseVector(CharSparseVector orig) : this(modshogunPINVOKE.new_CharSparseVector__SWIG_5(CharSparseVector.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 4
0
 public virtual void set_sparse_matrix(CharSparseVector matrix, int num_feat, int num_vec)
 {
     modshogunPINVOKE.File_set_sparse_matrix__SWIG_2(swigCPtr, CharSparseVector.getCPtr(matrix), num_feat, num_vec);
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 5
0
 public override void get_sparse_matrix(CharSparseVector matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec)
 {
     modshogunPINVOKE.BinaryFile_get_sparse_matrix__SWIG_2(swigCPtr, CharSparseVector.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
    public CharSparseVector get_vector()
    {
        CharSparseVector ret = new CharSparseVector(modshogunPINVOKE.StreamingSparseCharFeatures_get_vector(swigCPtr), true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemplo n.º 7
0
    public CharSparseVector get_sparse_feature_vector(int num)
    {
        CharSparseVector ret = new CharSparseVector(modshogunPINVOKE.SparseCharFeatures_get_sparse_feature_vector(swigCPtr, num), true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public CharSparseVector get_vector() {
   CharSparseVector ret = new CharSparseVector(modshogunPINVOKE.StreamingSparseCharFeatures_get_vector(swigCPtr), true);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Exemplo n.º 9
0
 public override void set_sparse_matrix(CharSparseVector matrix, int num_feat, int num_vec) {
   modshogunPINVOKE.BinaryFile_set_sparse_matrix__SWIG_2(swigCPtr, CharSparseVector.getCPtr(matrix), num_feat, num_vec);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 10
0
 public CharSparseMatrix(CharSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_CharSparseMatrix__SWIG_2(CharSparseVector.getCPtr(vecs), num_feat, num_vec), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 11
0
 public CharSparseVector(CharSparseVector orig) : this(modshogunPINVOKE.new_CharSparseVector__SWIG_5(CharSparseVector.getCPtr(orig)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 12
0
 internal static HandleRef getCPtr(CharSparseVector obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Exemplo n.º 13
0
 internal static HandleRef getCPtr(CharSparseVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Exemplo n.º 14
0
 public virtual void get_sparse_matrix(CharSparseVector matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec) {
   modshogunPINVOKE.File_get_sparse_matrix__SWIG_2(swigCPtr, CharSparseVector.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 15
0
 public SparseCharFeatures(CharSparseVector src, int num_feat, int num_vec) : this(modshogunPINVOKE.new_SparseCharFeatures__SWIG_3(CharSparseVector.getCPtr(src), num_feat, num_vec), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Exemplo n.º 16
0
 public CharSparseVector get_sparse_feature_vector(int num) {
   CharSparseVector ret = new CharSparseVector(modshogunPINVOKE.SparseCharFeatures_get_sparse_feature_vector(swigCPtr, num), true);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }