public ShortRealSparseVector(ShortRealSparseVector orig) : this(modshogunPINVOKE.new_ShortRealSparseVector__SWIG_5(ShortRealSparseVector.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public ShortRealSparseMatrix(ShortRealSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_ShortRealSparseMatrix__SWIG_2(ShortRealSparseVector.getCPtr(vecs), num_feat, num_vec), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#3
0
 public SparseShortRealFeatures(ShortRealSparseVector src, int num_feat, int num_vec) : this(modshogunPINVOKE.new_SparseShortRealFeatures__SWIG_3(ShortRealSparseVector.getCPtr(src), num_feat, num_vec), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#4
0
 public virtual void set_sparse_matrix(ShortRealSparseVector matrix, int num_feat, int num_vec)
 {
     modshogunPINVOKE.File_set_sparse_matrix__SWIG_6(swigCPtr, ShortRealSparseVector.getCPtr(matrix), num_feat, num_vec);
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#5
0
 public override void get_sparse_matrix(ShortRealSparseVector matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec)
 {
     modshogunPINVOKE.BinaryFile_get_sparse_matrix__SWIG_6(swigCPtr, ShortRealSparseVector.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
    public ShortRealSparseVector get_vector()
    {
        ShortRealSparseVector ret = new ShortRealSparseVector(modshogunPINVOKE.StreamingSparseShortRealFeatures_get_vector(swigCPtr), true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public ShortRealSparseVector get_vector() {
   ShortRealSparseVector ret = new ShortRealSparseVector(modshogunPINVOKE.StreamingSparseShortRealFeatures_get_vector(swigCPtr), true);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 internal static HandleRef getCPtr(ShortRealSparseVector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
示例#9
0
 public override void set_sparse_matrix(ShortRealSparseVector matrix, int num_feat, int num_vec) {
   modshogunPINVOKE.BinaryFile_set_sparse_matrix__SWIG_6(swigCPtr, ShortRealSparseVector.getCPtr(matrix), num_feat, num_vec);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
示例#10
0
 public ShortRealSparseVector(ShortRealSparseVector orig) : this(modshogunPINVOKE.new_ShortRealSparseVector__SWIG_5(ShortRealSparseVector.getCPtr(orig)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
示例#11
0
 internal static HandleRef getCPtr(ShortRealSparseVector obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
示例#12
0
 public ShortRealSparseMatrix(ShortRealSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_ShortRealSparseMatrix__SWIG_2(ShortRealSparseVector.getCPtr(vecs), num_feat, num_vec), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
示例#13
0
 public virtual void get_sparse_matrix(ShortRealSparseVector matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec) {
   modshogunPINVOKE.File_get_sparse_matrix__SWIG_6(swigCPtr, ShortRealSparseVector.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
 public SparseShortRealFeatures(ShortRealSparseVector src, int num_feat, int num_vec) : this(modshogunPINVOKE.new_SparseShortRealFeatures__SWIG_3(ShortRealSparseVector.getCPtr(src), num_feat, num_vec), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
 public ShortRealSparseVector get_sparse_feature_vector(int num) {
   ShortRealSparseVector ret = new ShortRealSparseVector(modshogunPINVOKE.SparseShortRealFeatures_get_sparse_feature_vector(swigCPtr, num), true);
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }