public SparseWordFeatures(WordSparseVector src, int num_feat, int num_vec) : this(modshogunPINVOKE.new_SparseWordFeatures__SWIG_3(WordSparseVector.getCPtr(src), num_feat, num_vec), true) { if (modshogunPINVOKE.SWIGPendingException.Pending) { throw modshogunPINVOKE.SWIGPendingException.Retrieve(); } }
public WordSparseVector(WordSparseVector orig) : this(modshogunPINVOKE.new_WordSparseVector__SWIG_5(WordSparseVector.getCPtr(orig)), true) { if (modshogunPINVOKE.SWIGPendingException.Pending) { throw modshogunPINVOKE.SWIGPendingException.Retrieve(); } }
public WordSparseMatrix(WordSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_WordSparseMatrix__SWIG_2(WordSparseVector.getCPtr(vecs), num_feat, num_vec), true) { if (modshogunPINVOKE.SWIGPendingException.Pending) { throw modshogunPINVOKE.SWIGPendingException.Retrieve(); } }
public virtual void set_sparse_matrix(WordSparseVector matrix, int num_feat, int num_vec) { modshogunPINVOKE.File_set_sparse_matrix__SWIG_5(swigCPtr, WordSparseVector.getCPtr(matrix), num_feat, num_vec); if (modshogunPINVOKE.SWIGPendingException.Pending) { throw modshogunPINVOKE.SWIGPendingException.Retrieve(); } }
public override void get_sparse_matrix(WordSparseVector matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec) { modshogunPINVOKE.BinaryFile_get_sparse_matrix__SWIG_5(swigCPtr, WordSparseVector.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec)); if (modshogunPINVOKE.SWIGPendingException.Pending) { throw modshogunPINVOKE.SWIGPendingException.Retrieve(); } }
public WordSparseVector get_vector() { WordSparseVector ret = new WordSparseVector(modshogunPINVOKE.StreamingSparseWordFeatures_get_vector(swigCPtr), true); if (modshogunPINVOKE.SWIGPendingException.Pending) { throw modshogunPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public WordSparseVector get_sparse_feature_vector(int num) { WordSparseVector ret = new WordSparseVector(modshogunPINVOKE.SparseWordFeatures_get_sparse_feature_vector(swigCPtr, num), true); if (modshogunPINVOKE.SWIGPendingException.Pending) { throw modshogunPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public override void set_sparse_matrix(WordSparseVector matrix, int num_feat, int num_vec) { modshogunPINVOKE.BinaryFile_set_sparse_matrix__SWIG_5(swigCPtr, WordSparseVector.getCPtr(matrix), num_feat, num_vec); if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve(); }
public WordSparseVector(WordSparseVector orig) : this(modshogunPINVOKE.new_WordSparseVector__SWIG_5(WordSparseVector.getCPtr(orig)), true) { if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve(); }
internal static HandleRef getCPtr(WordSparseVector obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
public WordSparseVector get_vector() { WordSparseVector ret = new WordSparseVector(modshogunPINVOKE.StreamingSparseWordFeatures_get_vector(swigCPtr), true); if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve(); return ret; }
internal static HandleRef getCPtr(WordSparseVector obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }
public WordSparseMatrix(WordSparseVector vecs, int num_feat, int num_vec) : this(modshogunPINVOKE.new_WordSparseMatrix__SWIG_2(WordSparseVector.getCPtr(vecs), num_feat, num_vec), true) { if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve(); }
public virtual void get_sparse_matrix(WordSparseVector matrix, SWIGTYPE_p_int num_feat, SWIGTYPE_p_int num_vec) { modshogunPINVOKE.File_get_sparse_matrix__SWIG_5(swigCPtr, WordSparseVector.getCPtr(matrix), SWIGTYPE_p_int.getCPtr(num_feat), SWIGTYPE_p_int.getCPtr(num_vec)); if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve(); }