public WordSparseMatrix(WordSparseMatrix orig) : this(modshogunPINVOKE.new_WordSparseMatrix__SWIG_5(WordSparseMatrix.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #2
0
 public SparseWordFeatures(WordSparseMatrix sparse) : this(modshogunPINVOKE.new_SparseWordFeatures__SWIG_4(WordSparseMatrix.getCPtr(sparse)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #3
0
 public void set_sparse_feature_matrix(WordSparseMatrix sm)
 {
     modshogunPINVOKE.SparseWordFeatures_set_sparse_feature_matrix(swigCPtr, WordSparseMatrix.getCPtr(sm));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #4
0
    public WordSparseMatrix get_sparse_feature_matrix()
    {
        WordSparseMatrix ret = new WordSparseMatrix(modshogunPINVOKE.SparseWordFeatures_get_sparse_feature_matrix(swigCPtr), true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public WordSparseMatrix(WordSparseMatrix orig) : this(modshogunPINVOKE.new_WordSparseMatrix__SWIG_5(WordSparseMatrix.getCPtr(orig)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
 internal static HandleRef getCPtr(WordSparseMatrix obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
 internal static HandleRef getCPtr(WordSparseMatrix obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }