Exemple #1
0
        public unsafe DelayedNeuron(global::Org.Neuroph.Core.Input.InputFunction p0, global::Org.Neuroph.Core.Transfer.TransferFunction 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(DelayedNeuron))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/neuroph/core/input/InputFunction;Lorg/neuroph/core/transfer/TransferFunction;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/neuroph/core/input/InputFunction;Lorg/neuroph/core/transfer/TransferFunction;)V", __args);
                    return;
                }

                if (id_ctor_Lorg_neuroph_core_input_InputFunction_Lorg_neuroph_core_transfer_TransferFunction_ == IntPtr.Zero)
                {
                    id_ctor_Lorg_neuroph_core_input_InputFunction_Lorg_neuroph_core_transfer_TransferFunction_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/neuroph/core/input/InputFunction;Lorg/neuroph/core/transfer/TransferFunction;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_neuroph_core_input_InputFunction_Lorg_neuroph_core_transfer_TransferFunction_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_neuroph_core_input_InputFunction_Lorg_neuroph_core_transfer_TransferFunction_, __args);
            } finally {
            }
        }
Exemple #2
0
 static double n_GetDerivative_D(IntPtr jnienv, IntPtr native__this, double p0)
 {
     global::Org.Neuroph.Core.Transfer.TransferFunction __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Transfer.TransferFunction> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.GetDerivative(p0));
 }
Exemple #3
0
        public unsafe MatrixMlpLayer(global::Org.Neuroph.Core.Layer p0, global::Org.Neuroph.Contrib.Matrixmlp.IMatrixLayer p1, global::Org.Neuroph.Core.Transfer.TransferFunction 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(MatrixMlpLayer))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/neuroph/core/Layer;Lorg/neuroph/contrib/matrixmlp/MatrixLayer;Lorg/neuroph/core/transfer/TransferFunction;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/neuroph/core/Layer;Lorg/neuroph/contrib/matrixmlp/MatrixLayer;Lorg/neuroph/core/transfer/TransferFunction;)V", __args);
                    return;
                }

                if (id_ctor_Lorg_neuroph_core_Layer_Lorg_neuroph_contrib_matrixmlp_MatrixLayer_Lorg_neuroph_core_transfer_TransferFunction_ == IntPtr.Zero)
                {
                    id_ctor_Lorg_neuroph_core_Layer_Lorg_neuroph_contrib_matrixmlp_MatrixLayer_Lorg_neuroph_core_transfer_TransferFunction_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/neuroph/core/Layer;Lorg/neuroph/contrib/matrixmlp/MatrixLayer;Lorg/neuroph/core/transfer/TransferFunction;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_neuroph_core_Layer_Lorg_neuroph_contrib_matrixmlp_MatrixLayer_Lorg_neuroph_core_transfer_TransferFunction_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_neuroph_core_Layer_Lorg_neuroph_contrib_matrixmlp_MatrixLayer_Lorg_neuroph_core_transfer_TransferFunction_, __args);
            } finally {
            }
        }