コード例 #1
0
 public ByteSparseVector(ByteSparseVector orig) : this(modshogunPINVOKE.new_ByteSparseVector__SWIG_5(ByteSparseVector.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 public SparseByteFeatures(ByteSparseVector src, int num_feat, int num_vec) : this(modshogunPINVOKE.new_SparseByteFeatures__SWIG_3(ByteSparseVector.getCPtr(src), num_feat, num_vec), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
 public ByteSparseMatrix(ByteSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_ByteSparseMatrix__SWIG_2(ByteSparseVector.getCPtr(vecs), num_feat, num_vec), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
 public virtual void set_sparse_matrix(ByteSparseVector matrix, int num_feat, int num_vec)
 {
     modshogunPINVOKE.File_set_sparse_matrix__SWIG_1(swigCPtr, ByteSparseVector.getCPtr(matrix), num_feat, num_vec);
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #5
0
ファイル: BinaryFile.cs プロジェクト: Anshul-Bansal/gsoc
 public override void get_sparse_matrix(ByteSparseVector matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec)
 {
     modshogunPINVOKE.BinaryFile_get_sparse_matrix__SWIG_1(swigCPtr, ByteSparseVector.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 ByteSparseVector get_vector()
    {
        ByteSparseVector ret = new ByteSparseVector(modshogunPINVOKE.StreamingSparseByteFeatures_get_vector(swigCPtr), true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #7
0
    public ByteSparseVector get_sparse_feature_vector(int num)
    {
        ByteSparseVector ret = new ByteSparseVector(modshogunPINVOKE.SparseByteFeatures_get_sparse_feature_vector(swigCPtr, num), true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #8
0
 public ByteSparseMatrix(ByteSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_ByteSparseMatrix__SWIG_2(ByteSparseVector.getCPtr(vecs), num_feat, num_vec), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #9
0
ファイル: BinaryFile.cs プロジェクト: Anshul-Bansal/gsoc
 public override void set_sparse_matrix(ByteSparseVector matrix, int num_feat, int num_vec) {
   modshogunPINVOKE.BinaryFile_set_sparse_matrix__SWIG_1(swigCPtr, ByteSparseVector.getCPtr(matrix), num_feat, num_vec);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #10
0
 public ByteSparseVector(ByteSparseVector orig) : this(modshogunPINVOKE.new_ByteSparseVector__SWIG_5(ByteSparseVector.getCPtr(orig)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #11
0
 internal static HandleRef getCPtr(ByteSparseVector obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #12
0
 public SparseByteFeatures(ByteSparseVector src, int num_feat, int num_vec) : this(modshogunPINVOKE.new_SparseByteFeatures__SWIG_3(ByteSparseVector.getCPtr(src), num_feat, num_vec), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #13
0
 public ByteSparseVector get_sparse_feature_vector(int num) {
   ByteSparseVector ret = new ByteSparseVector(modshogunPINVOKE.SparseByteFeatures_get_sparse_feature_vector(swigCPtr, num), true);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #14
0
 internal static HandleRef getCPtr(ByteSparseVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #15
0
ファイル: File.cs プロジェクト: Anshul-Bansal/gsoc
 public virtual void get_sparse_matrix(ByteSparseVector matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec) {
   modshogunPINVOKE.File_get_sparse_matrix__SWIG_1(swigCPtr, ByteSparseVector.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #16
0
 public ByteSparseVector get_vector() {
   ByteSparseVector ret = new ByteSparseVector(modshogunPINVOKE.StreamingSparseByteFeatures_get_vector(swigCPtr), true);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }