Пример #1
0
 public SparseWordFeatures(SparseWordFeatures orig) : this(modshogunPINVOKE.new_SparseWordFeatures__SWIG_6(SparseWordFeatures.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
    public SparseWordFeatures get_transposed()
    {
        IntPtr             cPtr = modshogunPINVOKE.SparseWordFeatures_get_transposed(swigCPtr);
        SparseWordFeatures ret  = (cPtr == IntPtr.Zero) ? null : new SparseWordFeatures(cPtr, true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #3
0
 internal static HandleRef getCPtr(SparseWordFeatures obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }