Beispiel #1
0
        static double n_GetOutput_arrayD(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Org.Neuroph.Core.Input.SummingFunction __this = global::Java.Lang.Object.GetObject <global::Org.Neuroph.Core.Input.SummingFunction> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            double[] p0    = (double[])JNIEnv.GetArray(native_p0, JniHandleOwnership.DoNotTransfer, typeof(double));
            double   __ret = __this.GetOutput(p0);

            if (p0 != null)
            {
                JNIEnv.CopyArray(p0, native_p0);
            }
            return(__ret);
        }
        public unsafe InputFunction(global::Org.Neuroph.Core.Input.WeightsFunction p0, global::Org.Neuroph.Core.Input.SummingFunction 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(InputFunction))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/neuroph/core/input/WeightsFunction;Lorg/neuroph/core/input/SummingFunction;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/neuroph/core/input/WeightsFunction;Lorg/neuroph/core/input/SummingFunction;)V", __args);
                    return;
                }

                if (id_ctor_Lorg_neuroph_core_input_WeightsFunction_Lorg_neuroph_core_input_SummingFunction_ == IntPtr.Zero)
                {
                    id_ctor_Lorg_neuroph_core_input_WeightsFunction_Lorg_neuroph_core_input_SummingFunction_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/neuroph/core/input/WeightsFunction;Lorg/neuroph/core/input/SummingFunction;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_neuroph_core_input_WeightsFunction_Lorg_neuroph_core_input_SummingFunction_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_neuroph_core_input_WeightsFunction_Lorg_neuroph_core_input_SummingFunction_, __args);
            } finally {
            }
        }