public unsafe ConvolutionalLayer(global::Org.Neuroph.Nnet.Comp.Layer.FeatureMapsLayer p0, global::Org.Neuroph.Nnet.Comp.Kernel p1, int p2) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); if (GetType() != typeof(ConvolutionalLayer)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/neuroph/nnet/comp/layer/FeatureMapsLayer;Lorg/neuroph/nnet/comp/Kernel;I)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/neuroph/nnet/comp/layer/FeatureMapsLayer;Lorg/neuroph/nnet/comp/Kernel;I)V", __args); return; } if (id_ctor_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_Lorg_neuroph_nnet_comp_Kernel_I == IntPtr.Zero) { id_ctor_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_Lorg_neuroph_nnet_comp_Kernel_I = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/neuroph/nnet/comp/layer/FeatureMapsLayer;Lorg/neuroph/nnet/comp/Kernel;I)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_Lorg_neuroph_nnet_comp_Kernel_I, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_Lorg_neuroph_nnet_comp_Kernel_I, __args); } finally { } }
static void n_ConnectMaps_Lorg_neuroph_nnet_comp_layer_Layer2D_Lorg_neuroph_nnet_comp_layer_Layer2D_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Org.Neuroph.Nnet.Comp.Layer.FeatureMapsLayer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Nnet.Comp.Layer.FeatureMapsLayer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Neuroph.Nnet.Comp.Layer.Layer2D p0 = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Nnet.Comp.Layer.Layer2D> (native_p0, JniHandleOwnership.DoNotTransfer); global::Org.Neuroph.Nnet.Comp.Layer.Layer2D p1 = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Nnet.Comp.Layer.Layer2D> (native_p1, JniHandleOwnership.DoNotTransfer); __this.ConnectMaps(p0, p1); }
public static unsafe void FullConectMapLayers(global::Org.Neuroph.Nnet.Comp.Layer.FeatureMapsLayer p0, global::Org.Neuroph.Nnet.Comp.Layer.FeatureMapsLayer p1) { if (id_fullConectMapLayers_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_ == IntPtr.Zero) { id_fullConectMapLayers_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_ = JNIEnv.GetStaticMethodID(class_ref, "fullConectMapLayers", "(Lorg/neuroph/nnet/comp/layer/FeatureMapsLayer;Lorg/neuroph/nnet/comp/layer/FeatureMapsLayer;)V"); } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); JNIEnv.CallStaticVoidMethod(class_ref, id_fullConectMapLayers_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_, __args); } finally { } }
public static unsafe void FullConnect(global::Org.Neuroph.Nnet.Comp.Layer.FeatureMapsLayer p0, global::Org.Neuroph.Core.Layer p1, bool p2) { if (id_fullConnect_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_Lorg_neuroph_core_Layer_Z == IntPtr.Zero) { id_fullConnect_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_Lorg_neuroph_core_Layer_Z = JNIEnv.GetStaticMethodID(class_ref, "fullConnect", "(Lorg/neuroph/nnet/comp/layer/FeatureMapsLayer;Lorg/neuroph/core/Layer;Z)V"); } try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); JNIEnv.CallStaticVoidMethod(class_ref, id_fullConnect_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_Lorg_neuroph_core_Layer_Z, __args); } finally { } }
public static unsafe void ConnectFeatureMaps(global::Org.Neuroph.Nnet.Comp.Layer.FeatureMapsLayer p0, global::Org.Neuroph.Nnet.Comp.Layer.FeatureMapsLayer p1, int p2, int p3) { if (id_connectFeatureMaps_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_II == IntPtr.Zero) { id_connectFeatureMaps_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_II = JNIEnv.GetStaticMethodID(class_ref, "connectFeatureMaps", "(Lorg/neuroph/nnet/comp/layer/FeatureMapsLayer;Lorg/neuroph/nnet/comp/layer/FeatureMapsLayer;II)V"); } 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); JNIEnv.CallStaticVoidMethod(class_ref, id_connectFeatureMaps_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_Lorg_neuroph_nnet_comp_layer_FeatureMapsLayer_II, __args); } finally { } }
static IntPtr n_GetNeuronAt_III(IntPtr jnienv, IntPtr native__this, int p0, int p1, int p2) { global::Org.Neuroph.Nnet.Comp.Layer.FeatureMapsLayer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Nnet.Comp.Layer.FeatureMapsLayer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.ToLocalJniHandle(__this.GetNeuronAt(p0, p1, p2))); }
static int n_GetNumberOfMaps(IntPtr jnienv, IntPtr native__this) { global::Org.Neuroph.Nnet.Comp.Layer.FeatureMapsLayer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Nnet.Comp.Layer.FeatureMapsLayer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.NumberOfMaps); }
static IntPtr n_GetMapDimensions(IntPtr jnienv, IntPtr native__this) { global::Org.Neuroph.Nnet.Comp.Layer.FeatureMapsLayer __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Nnet.Comp.Layer.FeatureMapsLayer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.ToLocalJniHandle(__this.MapDimensions)); }