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); }
static long n_GetRecordCount(IntPtr jnienv, IntPtr native__this) { global::Org.Encog.Engine.Data.IEngineIndexableSet __this = global::Java.Lang.Object.GetObject <global::Org.Encog.Engine.Data.IEngineIndexableSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.RecordCount); }
static bool n_IsSupervised(IntPtr jnienv, IntPtr native__this) { global::Org.Encog.Engine.Data.IEngineIndexableSet __this = global::Java.Lang.Object.GetObject <global::Org.Encog.Engine.Data.IEngineIndexableSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.IsSupervised); }
static int n_GetInputSize(IntPtr jnienv, IntPtr native__this) { global::Org.Encog.Engine.Data.IEngineIndexableSet __this = global::Java.Lang.Object.GetObject <global::Org.Encog.Engine.Data.IEngineIndexableSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.InputSize); }
static IntPtr n_OpenAdditional(IntPtr jnienv, IntPtr native__this) { global::Org.Encog.Engine.Data.IEngineIndexableSet __this = global::Java.Lang.Object.GetObject <global::Org.Encog.Engine.Data.IEngineIndexableSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.ToLocalJniHandle(__this.OpenAdditional())); }
static void n_GetRecord_JLorg_encog_engine_data_EngineData_(IntPtr jnienv, IntPtr native__this, long p0, IntPtr native_p1) { global::Org.Encog.Engine.Data.IEngineIndexableSet __this = global::Java.Lang.Object.GetObject <global::Org.Encog.Engine.Data.IEngineIndexableSet> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Encog.Engine.Data.IEngineData p1 = (global::Org.Encog.Engine.Data.IEngineData)global::Java.Lang.Object.GetObject <global::Org.Encog.Engine.Data.IEngineData> (native_p1, JniHandleOwnership.DoNotTransfer); __this.GetRecord(p0, p1); }
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 { } }
public unsafe KernelNetworkTrain(global::Org.Encog.Engine.Opencl.EncogCLDevice p0, global::Org.Encog.Engine.Network.Flat.FlatNetwork p1, global::Org.Encog.Engine.Data.IEngineIndexableSet p2, int p3) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [4]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); __args [3] = new JValue(p3); if (GetType() != typeof(KernelNetworkTrain)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/encog/engine/opencl/EncogCLDevice;Lorg/encog/engine/network/flat/FlatNetwork;Lorg/encog/engine/data/EngineIndexableSet;I)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/encog/engine/opencl/EncogCLDevice;Lorg/encog/engine/network/flat/FlatNetwork;Lorg/encog/engine/data/EngineIndexableSet;I)V", __args); return; } if (id_ctor_Lorg_encog_engine_opencl_EncogCLDevice_Lorg_encog_engine_network_flat_FlatNetwork_Lorg_encog_engine_data_EngineIndexableSet_I == IntPtr.Zero) { id_ctor_Lorg_encog_engine_opencl_EncogCLDevice_Lorg_encog_engine_network_flat_FlatNetwork_Lorg_encog_engine_data_EngineIndexableSet_I = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/encog/engine/opencl/EncogCLDevice;Lorg/encog/engine/network/flat/FlatNetwork;Lorg/encog/engine/data/EngineIndexableSet;I)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_encog_engine_opencl_EncogCLDevice_Lorg_encog_engine_network_flat_FlatNetwork_Lorg_encog_engine_data_EngineIndexableSet_I, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_encog_engine_opencl_EncogCLDevice_Lorg_encog_engine_network_flat_FlatNetwork_Lorg_encog_engine_data_EngineIndexableSet_I, __args); } finally { } }
public unsafe GradientWorkerCPU(global::Org.Encog.Engine.Network.Flat.FlatNetwork p0, global::Org.Encog.Engine.Network.Train.Prop.TrainFlatNetworkProp p1, global::Org.Encog.Engine.Data.IEngineIndexableSet p2, int p3, int p4) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [5]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); __args [3] = new JValue(p3); __args [4] = new JValue(p4); if (GetType() != typeof(GradientWorkerCPU)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/encog/engine/network/flat/FlatNetwork;Lorg/encog/engine/network/train/prop/TrainFlatNetworkProp;Lorg/encog/engine/data/EngineIndexableSet;II)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/encog/engine/network/flat/FlatNetwork;Lorg/encog/engine/network/train/prop/TrainFlatNetworkProp;Lorg/encog/engine/data/EngineIndexableSet;II)V", __args); return; } if (id_ctor_Lorg_encog_engine_network_flat_FlatNetwork_Lorg_encog_engine_network_train_prop_TrainFlatNetworkProp_Lorg_encog_engine_data_EngineIndexableSet_II == IntPtr.Zero) { id_ctor_Lorg_encog_engine_network_flat_FlatNetwork_Lorg_encog_engine_network_train_prop_TrainFlatNetworkProp_Lorg_encog_engine_data_EngineIndexableSet_II = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/encog/engine/network/flat/FlatNetwork;Lorg/encog/engine/network/train/prop/TrainFlatNetworkProp;Lorg/encog/engine/data/EngineIndexableSet;II)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_encog_engine_network_flat_FlatNetwork_Lorg_encog_engine_network_train_prop_TrainFlatNetworkProp_Lorg_encog_engine_data_EngineIndexableSet_II, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_encog_engine_network_flat_FlatNetwork_Lorg_encog_engine_network_train_prop_TrainFlatNetworkProp_Lorg_encog_engine_data_EngineIndexableSet_II, __args); } finally { } }