示例#1
0
 public BoolSparseVector(BoolSparseVector orig) : this(modshogunPINVOKE.new_BoolSparseVector__SWIG_5(BoolSparseVector.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#2
0
 public SparseBoolFeatures(BoolSparseVector src, int num_feat, int num_vec) : this(modshogunPINVOKE.new_SparseBoolFeatures__SWIG_3(BoolSparseVector.getCPtr(src), num_feat, num_vec), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#3
0
 public BoolSparseMatrix(BoolSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_BoolSparseMatrix__SWIG_2(BoolSparseVector.getCPtr(vecs), num_feat, num_vec), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#4
0
 public virtual void set_sparse_matrix(BoolSparseVector matrix, int num_feat, int num_vec)
 {
     modshogunPINVOKE.File_set_sparse_matrix__SWIG_0(swigCPtr, BoolSparseVector.getCPtr(matrix), num_feat, num_vec);
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#5
0
 public override void get_sparse_matrix(BoolSparseVector matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec)
 {
     modshogunPINVOKE.BinaryFile_get_sparse_matrix__SWIG_0(swigCPtr, BoolSparseVector.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 BoolSparseVector get_sparse_feature_vector(int num)
    {
        BoolSparseVector ret = new BoolSparseVector(modshogunPINVOKE.SparseBoolFeatures_get_sparse_feature_vector(swigCPtr, num), true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#7
0
    public BoolSparseVector get_vector()
    {
        BoolSparseVector ret = new BoolSparseVector(modshogunPINVOKE.StreamingSparseBoolFeatures_get_vector(swigCPtr), true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#8
0
 internal static HandleRef getCPtr(BoolSparseVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
示例#9
0
 public override void set_sparse_matrix(BoolSparseVector matrix, int num_feat, int num_vec) {
   modshogunPINVOKE.BinaryFile_set_sparse_matrix__SWIG_0(swigCPtr, BoolSparseVector.getCPtr(matrix), num_feat, num_vec);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
示例#10
0
 public BoolSparseMatrix(BoolSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_BoolSparseMatrix__SWIG_2(BoolSparseVector.getCPtr(vecs), num_feat, num_vec), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
示例#11
0
 public BoolSparseVector get_sparse_feature_vector(int num) {
   BoolSparseVector ret = new BoolSparseVector(modshogunPINVOKE.SparseBoolFeatures_get_sparse_feature_vector(swigCPtr, num), true);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#12
0
 public SparseBoolFeatures(BoolSparseVector src, int num_feat, int num_vec) : this(modshogunPINVOKE.new_SparseBoolFeatures__SWIG_3(BoolSparseVector.getCPtr(src), num_feat, num_vec), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
示例#13
0
 public virtual void get_sparse_matrix(BoolSparseVector matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec) {
   modshogunPINVOKE.File_get_sparse_matrix__SWIG_0(swigCPtr, BoolSparseVector.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
示例#14
0
 public BoolSparseVector(BoolSparseVector orig) : this(modshogunPINVOKE.new_BoolSparseVector__SWIG_5(BoolSparseVector.getCPtr(orig)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
示例#15
0
 internal static HandleRef getCPtr(BoolSparseVector obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
 public BoolSparseVector get_vector() {
   BoolSparseVector ret = new BoolSparseVector(modshogunPINVOKE.StreamingSparseBoolFeatures_get_vector(swigCPtr), true);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }