Ejemplo n.º 1
0
 public TensorProductPairKernel(IntFeatures l, IntFeatures r, Kernel subkernel) : this(modshogunPINVOKE.new_TensorProductPairKernel__SWIG_2(IntFeatures.getCPtr(l), IntFeatures.getCPtr(r), Kernel.getCPtr(subkernel)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 2
0
 public IntFeatures(IntFeatures orig) : this(modshogunPINVOKE.new_IntFeatures__SWIG_2(IntFeatures.getCPtr(orig)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 3
0
 public StreamingIntFeatures(IntFeatures simple_features) : this(modshogunPINVOKE.new_StreamingIntFeatures__SWIG_3(IntFeatures.getCPtr(simple_features)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 4
0
 public StreamingIntFeatures(IntFeatures simple_features, SWIGTYPE_p_double lab) : this(modshogunPINVOKE.new_StreamingIntFeatures__SWIG_2(IntFeatures.getCPtr(simple_features), SWIGTYPE_p_double.getCPtr(lab)), true)
 {
     if (modshogunPINVOKE.SWIGPendingException.Pending)
     {
         throw modshogunPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 5
0
    public bool obtain_from_simple(IntFeatures sf)
    {
        bool ret = modshogunPINVOKE.SparseIntFeatures_obtain_from_simple(swigCPtr, IntFeatures.getCPtr(sf));

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 6
0
    public IntFeatures get_transposed()
    {
        IntPtr      cPtr = modshogunPINVOKE.IntFeatures_get_transposed(swigCPtr);
        IntFeatures ret  = (cPtr == IntPtr.Zero) ? null : new IntFeatures(cPtr, true);

        if (modshogunPINVOKE.SWIGPendingException.Pending)
        {
            throw modshogunPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 7
0
 public IntFeatures(IntFeatures orig) : this(modshogunPINVOKE.new_IntFeatures__SWIG_2(IntFeatures.getCPtr(orig)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 8
0
 internal static HandleRef getCPtr(IntFeatures obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Ejemplo n.º 9
0
 public TensorProductPairKernel(IntFeatures l, IntFeatures r, Kernel subkernel) : this(modshogunPINVOKE.new_TensorProductPairKernel__SWIG_2(IntFeatures.getCPtr(l), IntFeatures.getCPtr(r), Kernel.getCPtr(subkernel)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 10
0
 public StreamingIntFeatures(IntFeatures simple_features) : this(modshogunPINVOKE.new_StreamingIntFeatures__SWIG_3(IntFeatures.getCPtr(simple_features)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 11
0
 public StreamingIntFeatures(IntFeatures simple_features, SWIGTYPE_p_double lab) : this(modshogunPINVOKE.new_StreamingIntFeatures__SWIG_2(IntFeatures.getCPtr(simple_features), SWIGTYPE_p_double.getCPtr(lab)), true) {
   if (modshogunPINVOKE.SWIGPendingException.Pending) throw modshogunPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 12
0
 internal static HandleRef getCPtr(IntFeatures obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }