static void n_CalculateKernelParams_Lorg_encog_engine_opencl_kernels_EncogKernel_Lorg_encog_engine_data_EngineIndexableSet_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Org.Encog.Engine.Network.Train.Prop.OpenCLTrainingProfile __this = global::Java.Lang.Object.GetObject <global::Org.Encog.Engine.Network.Train.Prop.OpenCLTrainingProfile> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Encog.Engine.Opencl.Kernels.EncogKernel p0 = global::Java.Lang.Object.GetObject <global::Org.Encog.Engine.Opencl.Kernels.EncogKernel> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Org.Encog.Engine.Data.IEngineIndexableSet   p1 = (global::Org.Encog.Engine.Data.IEngineIndexableSet)global::Java.Lang.Object.GetObject <global::Org.Encog.Engine.Data.IEngineIndexableSet> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.CalculateKernelParams(p0, p1);
 }
Example #2
0
        public virtual unsafe void Execute(global::Org.Encog.Engine.Opencl.Kernels.EncogKernel p0)
        {
            if (id_execute_Lorg_encog_engine_opencl_kernels_EncogKernel_ == IntPtr.Zero)
            {
                id_execute_Lorg_encog_engine_opencl_kernels_EncogKernel_ = JNIEnv.GetMethodID(class_ref, "execute", "(Lorg/encog/engine/opencl/kernels/EncogKernel;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_execute_Lorg_encog_engine_opencl_kernels_EncogKernel_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "execute", "(Lorg/encog/engine/opencl/kernels/EncogKernel;)V"), __args);
                }
            } finally {
            }
        }
        public virtual unsafe void CalculateKernelParams(global::Org.Encog.Engine.Opencl.Kernels.EncogKernel p0, global::Org.Encog.Engine.Data.IEngineIndexableSet p1)
        {
            if (id_calculateKernelParams_Lorg_encog_engine_opencl_kernels_EncogKernel_Lorg_encog_engine_data_EngineIndexableSet_ == IntPtr.Zero)
            {
                id_calculateKernelParams_Lorg_encog_engine_opencl_kernels_EncogKernel_Lorg_encog_engine_data_EngineIndexableSet_ = JNIEnv.GetMethodID(class_ref, "calculateKernelParams", "(Lorg/encog/engine/opencl/kernels/EncogKernel;Lorg/encog/engine/data/EngineIndexableSet;)V");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_calculateKernelParams_Lorg_encog_engine_opencl_kernels_EncogKernel_Lorg_encog_engine_data_EngineIndexableSet_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "calculateKernelParams", "(Lorg/encog/engine/opencl/kernels/EncogKernel;Lorg/encog/engine/data/EngineIndexableSet;)V"), __args);
                }
            } finally {
            }
        }
Example #4
0
 static void n_Execute_Lorg_encog_engine_opencl_kernels_EncogKernel_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Encog.Engine.Opencl.EncogCLQueue        __this = global::Java.Lang.Object.GetObject <global::Org.Encog.Engine.Opencl.EncogCLQueue> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Encog.Engine.Opencl.Kernels.EncogKernel p0     = global::Java.Lang.Object.GetObject <global::Org.Encog.Engine.Opencl.Kernels.EncogKernel> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Execute(p0);
 }