Beispiel #1
0
 public StateType(StateType other) : this(CorePINVOKE.new_StateType__SWIG_1(StateType.getCPtr(other)), true)
 {
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public Complex(Complex other) : this(CorePINVOKE.new_Complex__SWIG_1(Complex.getCPtr(other)), true)
 {
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #3
0
 public StateType(int capacity) : this(CorePINVOKE.new_StateType__SWIG_2(capacity), true)
 {
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #4
0
 public void RemoveRange(int index, int count)
 {
     CorePINVOKE.ComplexStateType_RemoveRange(swigCPtr, index, count);
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #5
0
 public void Insert(int index, Complex x)
 {
     CorePINVOKE.ComplexStateType_Insert(swigCPtr, index, Complex.getCPtr(x));
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #6
0
 private void setitem(int index, Complex val)
 {
     CorePINVOKE.ComplexStateType_setitem(swigCPtr, index, Complex.getCPtr(val));
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #7
0
 public void Add(Complex x)
 {
     CorePINVOKE.ComplexStateType_Add(swigCPtr, Complex.getCPtr(x));
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #8
0
 private void setitem(int index, double val)
 {
     CorePINVOKE.StateType_setitem(swigCPtr, index, val);
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #9
0
 public void SetRange(int index, StateType values)
 {
     CorePINVOKE.StateType_SetRange(swigCPtr, index, StateType.getCPtr(values));
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #10
0
 public void AddRange(StateType values)
 {
     CorePINVOKE.StateType_AddRange(swigCPtr, StateType.getCPtr(values));
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #11
0
 public void Insert(int index, double x)
 {
     CorePINVOKE.StateType_Insert(swigCPtr, index, x);
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #12
0
 public void RemoveAt(int index)
 {
     CorePINVOKE.StateType_RemoveAt(swigCPtr, index);
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #13
0
 public void Reverse(int index, int count)
 {
     CorePINVOKE.StateType_Reverse__SWIG_1(swigCPtr, index, count);
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #14
0
        private double getitem(int index)
        {
            double ret = CorePINVOKE.StateType_getitem(swigCPtr, index);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public Complex Substract(Complex rhs)
        {
            Complex ret = new Complex(CorePINVOKE.Complex_Substract(swigCPtr, Complex.getCPtr(rhs)), false);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #16
0
        private Complex getitem(int index)
        {
            Complex ret = new Complex(CorePINVOKE.ComplexStateType_getitem(swigCPtr, index), false);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #17
0
        public int Solve(Ode ode, StateType timePoints, double step)
        {
            int ret = CorePINVOKE.Solver_Solve__SWIG_3(swigCPtr, Ode.getCPtr(ode), StateType.getCPtr(timePoints), step);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public Complex Multiply(Complex rhs)
        {
            Complex ret = new Complex(CorePINVOKE.Complex_Multiply__SWIG_1(swigCPtr, Complex.getCPtr(rhs)), false);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #19
0
        public static StateType Repeat(double value, int count)
        {
            IntPtr    cPtr = CorePINVOKE.StateType_Repeat(value, count);
            StateType ret  = (cPtr == IntPtr.Zero) ? null : new StateType(cPtr, true);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #20
0
        public static ComplexStateType Repeat(Complex value, int count)
        {
            IntPtr           cPtr = CorePINVOKE.ComplexStateType_Repeat(Complex.getCPtr(value), count);
            ComplexStateType ret  = (cPtr == IntPtr.Zero) ? null : new ComplexStateType(cPtr, true);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #21
0
        public StateType GetRange(int index, int count)
        {
            IntPtr    cPtr = CorePINVOKE.StateType_GetRange(swigCPtr, index, count);
            StateType ret  = (cPtr == IntPtr.Zero) ? null : new StateType(cPtr, true);

            if (CorePINVOKE.SWIGPendingException.Pending)
            {
                throw CorePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("system", swigMethodTypes0))
     {
         swigDelegate0 = new SwigDelegateComplexOde_0(SwigDirectorsystem);
     }
     if (SwigDerivedClassHasMethod("observer", swigMethodTypes1))
     {
         swigDelegate1 = new SwigDelegateComplexOde_1(SwigDirectorobserver);
     }
     CorePINVOKE.ComplexOde_director_connect(swigCPtr, swigDelegate0, swigDelegate1);
 }
 protected virtual void system(ComplexStateType x, ComplexStateType dxdt, double t)
 {
     if (SwigDerivedClassHasMethod("system", swigMethodTypes0))
     {
         CorePINVOKE.ComplexOde_systemSwigExplicitComplexOde(swigCPtr, ComplexStateType.getCPtr(x), ComplexStateType.getCPtr(dxdt), t);
     }
     else
     {
         CorePINVOKE.ComplexOde_system(swigCPtr, ComplexStateType.getCPtr(x), ComplexStateType.getCPtr(dxdt), t);
     }
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
 protected virtual void observer(ComplexStateType x, double t)
 {
     if (SwigDerivedClassHasMethod("observer", swigMethodTypes1))
     {
         CorePINVOKE.ComplexOde_observerSwigExplicitComplexOde(swigCPtr, ComplexStateType.getCPtr(x), t);
     }
     else
     {
         CorePINVOKE.ComplexOde_observer(swigCPtr, ComplexStateType.getCPtr(x), t);
     }
     if (CorePINVOKE.SWIGPendingException.Pending)
     {
         throw CorePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #25
0
 public virtual void Dispose()
 {
     lock (this) {
         if (swigCPtr.Handle != IntPtr.Zero)
         {
             if (swigCMemOwn)
             {
                 swigCMemOwn = false;
                 CorePINVOKE.delete_StateType(swigCPtr);
             }
             swigCPtr = new HandleRef(null, IntPtr.Zero);
         }
         GC.SuppressFinalize(this);
     }
 }
Beispiel #26
0
        public bool Remove(double value)
        {
            bool ret = CorePINVOKE.StateType_Remove(swigCPtr, value);

            return(ret);
        }
Beispiel #27
0
        public int LastIndexOf(double value)
        {
            int ret = CorePINVOKE.StateType_LastIndexOf(swigCPtr, value);

            return(ret);
        }
Beispiel #28
0
        public bool Contains(double value)
        {
            bool ret = CorePINVOKE.StateType_Contains(swigCPtr, value);

            return(ret);
        }
Beispiel #29
0
 public void Reverse()
 {
     CorePINVOKE.StateType_Reverse__SWIG_0(swigCPtr);
 }
Beispiel #30
0
 public StateType() : this(CorePINVOKE.new_StateType__SWIG_0(), true)
 {
 }