コード例 #1
0
 public StreamingCharFeatures(CharFeatures simple_features, SWIGTYPE_p_double lab) : this(modshogunPINVOKE.new_StreamingCharFeatures__SWIG_2(CharFeatures.getCPtr(simple_features), SWIGTYPE_p_double.getCPtr(lab)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 public StreamingCharFeatures(CharFeatures simple_features) : this(modshogunPINVOKE.new_StreamingCharFeatures__SWIG_3(CharFeatures.getCPtr(simple_features)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
ファイル: CharFeatures.cs プロジェクト: Anshul-Bansal/gsoc
 public CharFeatures(CharFeatures orig) : this(modshogunPINVOKE.new_CharFeatures__SWIG_2(CharFeatures.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
    public bool obtain_from_simple(CharFeatures sf)
    {
        bool ret = modshogunPINVOKE.SparseCharFeatures_obtain_from_simple(swigCPtr, CharFeatures.getCPtr(sf));

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #5
0
ファイル: CharFeatures.cs プロジェクト: Anshul-Bansal/gsoc
    public CharFeatures get_transposed()
    {
        IntPtr       cPtr = modshogunPINVOKE.CharFeatures_get_transposed(swigCPtr);
        CharFeatures ret  = (cPtr == IntPtr.Zero) ? null : new CharFeatures(cPtr, true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #6
0
 public StreamingCharFeatures(CharFeatures simple_features) : this(modshogunPINVOKE.new_StreamingCharFeatures__SWIG_3(CharFeatures.getCPtr(simple_features)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #7
0
 public StreamingCharFeatures(CharFeatures simple_features, SWIGTYPE_p_double lab) : this(modshogunPINVOKE.new_StreamingCharFeatures__SWIG_2(CharFeatures.getCPtr(simple_features), SWIGTYPE_p_double.getCPtr(lab)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #8
0
 public bool obtain_from_simple(CharFeatures sf) {
   bool ret = modshogunPINVOKE.SparseCharFeatures_obtain_from_simple(swigCPtr, CharFeatures.getCPtr(sf));
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #9
0
ファイル: CharFeatures.cs プロジェクト: Anshul-Bansal/gsoc
 internal static HandleRef getCPtr(CharFeatures obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }