public unsafe FeatureMapsLayer(global::Org.Neuroph.Nnet.Comp.Kernel p0, global::Org.Neuroph.Nnet.Comp.Layer.Layer2D.Dimensions p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                if (GetType() != typeof(FeatureMapsLayer))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/neuroph/nnet/comp/Kernel;Lorg/neuroph/nnet/comp/layer/Layer2D$Dimensions;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/neuroph/nnet/comp/Kernel;Lorg/neuroph/nnet/comp/layer/Layer2D$Dimensions;)V", __args);
                    return;
                }

                if (id_ctor_Lorg_neuroph_nnet_comp_Kernel_Lorg_neuroph_nnet_comp_layer_Layer2D_Dimensions_ == IntPtr.Zero)
                {
                    id_ctor_Lorg_neuroph_nnet_comp_Kernel_Lorg_neuroph_nnet_comp_layer_Layer2D_Dimensions_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/neuroph/nnet/comp/Kernel;Lorg/neuroph/nnet/comp/layer/Layer2D$Dimensions;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_neuroph_nnet_comp_Kernel_Lorg_neuroph_nnet_comp_layer_Layer2D_Dimensions_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_neuroph_nnet_comp_Kernel_Lorg_neuroph_nnet_comp_layer_Layer2D_Dimensions_, __args);
            } finally {
            }
        }
 protected unsafe void CreateFeatureMaps(int p0, global::Org.Neuroph.Nnet.Comp.Layer.Layer2D.Dimensions p1, global::Org.Neuroph.Util.NeuronProperties p2)
 {
     if (id_createFeatureMaps_ILorg_neuroph_nnet_comp_layer_Layer2D_Dimensions_Lorg_neuroph_util_NeuronProperties_ == IntPtr.Zero)
     {
         id_createFeatureMaps_ILorg_neuroph_nnet_comp_layer_Layer2D_Dimensions_Lorg_neuroph_util_NeuronProperties_ = JNIEnv.GetMethodID(class_ref, "createFeatureMaps", "(ILorg/neuroph/nnet/comp/layer/Layer2D$Dimensions;Lorg/neuroph/util/NeuronProperties;)V");
     }
     try {
         JValue *__args = stackalloc JValue [3];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         __args [2] = new JValue(p2);
         JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_createFeatureMaps_ILorg_neuroph_nnet_comp_layer_Layer2D_Dimensions_Lorg_neuroph_util_NeuronProperties_, __args);
     } finally {
     }
 }
Exemplo n.º 3
0
 static void n_SetHeight_I(IntPtr jnienv, IntPtr native__this, int p0)
 {
     global::Org.Neuroph.Nnet.Comp.Layer.Layer2D.Dimensions __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Nnet.Comp.Layer.Layer2D.Dimensions> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Height = p0;
 }
Exemplo n.º 4
0
 static int n_GetHeight(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Neuroph.Nnet.Comp.Layer.Layer2D.Dimensions __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Nnet.Comp.Layer.Layer2D.Dimensions> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.Height);
 }