Пример #1
0
 public IntSparseMatrix(IntSparseMatrix orig) : this(modshogunPINVOKE.new_IntSparseMatrix__SWIG_5(IntSparseMatrix.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
 public SparseIntFeatures(IntSparseMatrix sparse) : this(modshogunPINVOKE.new_SparseIntFeatures__SWIG_4(IntSparseMatrix.getCPtr(sparse)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #3
0
 public void set_sparse_feature_matrix(IntSparseMatrix sm)
 {
     modshogunPINVOKE.SparseIntFeatures_set_sparse_feature_matrix(swigCPtr, IntSparseMatrix.getCPtr(sm));
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #4
0
    public IntSparseMatrix get_sparse_feature_matrix()
    {
        IntSparseMatrix ret = new IntSparseMatrix(modshogunPINVOKE.SparseIntFeatures_get_sparse_feature_matrix(swigCPtr), true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #5
0
 public IntSparseMatrix(IntSparseMatrix orig) : this(modshogunPINVOKE.new_IntSparseMatrix__SWIG_5(IntSparseMatrix.getCPtr(orig)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #6
0
 internal static HandleRef getCPtr(IntSparseMatrix obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Пример #7
0
 internal static HandleRef getCPtr(IntSparseMatrix obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }