コード例 #1
0
 public SparseUlongFeatures(ULongIntSparseVector src, int num_feat, int num_vec) : this(modshogunPINVOKE.new_SparseUlongFeatures__SWIG_3(ULongIntSparseVector.getCPtr(src), num_feat, num_vec), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 public ULongIntSparseVector(ULongIntSparseVector orig) : this(modshogunPINVOKE.new_ULongIntSparseVector__SWIG_5(ULongIntSparseVector.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
 public ULongIntSparseMatrix(ULongIntSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_ULongIntSparseMatrix__SWIG_2(ULongIntSparseVector.getCPtr(vecs), num_feat, num_vec), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
 public virtual void set_ulong_sparsematrix(ULongIntSparseVector matrix, int num_feat, int num_vec)
 {
     modshogunPINVOKE.File_set_ulong_sparsematrix(swigCPtr, ULongIntSparseVector.getCPtr(matrix), num_feat, num_vec);
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #5
0
    public ULongIntSparseVector get_sparse_feature_vector(int num)
    {
        ULongIntSparseVector ret = new ULongIntSparseVector(modshogunPINVOKE.SparseUlongFeatures_get_sparse_feature_vector(swigCPtr, num), true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #6
0
 public ULongIntSparseMatrix(ULongIntSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_ULongIntSparseMatrix__SWIG_2(ULongIntSparseVector.getCPtr(vecs), num_feat, num_vec), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #7
0
 internal static HandleRef getCPtr(ULongIntSparseVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #8
0
ファイル: File.cs プロジェクト: Anshul-Bansal/gsoc
 public virtual void set_ulong_sparsematrix(ULongIntSparseVector matrix, int num_feat, int num_vec) {
   modshogunPINVOKE.File_set_ulong_sparsematrix(swigCPtr, ULongIntSparseVector.getCPtr(matrix), num_feat, num_vec);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #9
0
 public SparseUlongFeatures(ULongIntSparseVector src, int num_feat, int num_vec) : this(modshogunPINVOKE.new_SparseUlongFeatures__SWIG_3(ULongIntSparseVector.getCPtr(src), num_feat, num_vec), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #10
0
 public ULongIntSparseVector get_sparse_feature_vector(int num) {
   ULongIntSparseVector ret = new ULongIntSparseVector(modshogunPINVOKE.SparseUlongFeatures_get_sparse_feature_vector(swigCPtr, num), true);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #11
0
 public ULongIntSparseVector(ULongIntSparseVector orig) : this(modshogunPINVOKE.new_ULongIntSparseVector__SWIG_5(ULongIntSparseVector.getCPtr(orig)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #12
0
 internal static HandleRef getCPtr(ULongIntSparseVector obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #13
0
 public ULongIntSparseVector get_vector() {
   ULongIntSparseVector ret = new ULongIntSparseVector(modshogunPINVOKE.StreamingSparseUlongFeatures_get_vector(swigCPtr), true);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }