예제 #1
0
    public static SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t PropsSImulti(SWIGTYPE_p_std__vectorT_std__string_t Outputs, string Name1, DoubleVector Prop1, string Name2, DoubleVector Prop2, string backend, SWIGTYPE_p_std__vectorT_std__string_t fluids, DoubleVector fractions)
    {
        SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t ret = new SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t(CoolPropPINVOKE.PropsSImulti(SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(Outputs), Name1, DoubleVector.getCPtr(Prop1), Name2, DoubleVector.getCPtr(Prop2), backend, SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(fluids), DoubleVector.getCPtr(fractions)), true);

        if (CoolPropPINVOKE.SWIGPendingException.Pending)
        {
            throw CoolPropPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
예제 #2
0
 public static SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t PropsSImulti(SWIGTYPE_p_std__vectorT_std__string_t Outputs, string Name1, DoubleVector Prop1, string Name2, DoubleVector Prop2, string backend, SWIGTYPE_p_std__vectorT_std__string_t fluids, DoubleVector fractions)
 {
     SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t ret = new SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t(CoolPropPINVOKE.PropsSImulti(SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(Outputs), Name1, DoubleVector.getCPtr(Prop1), Name2, DoubleVector.getCPtr(Prop2), backend, SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(fluids), DoubleVector.getCPtr(fractions)), true);
     if (CoolPropPINVOKE.SWIGPendingException.Pending) throw CoolPropPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
 public SwaptionVolatilityMatrix(Calendar calendar, BusinessDayConvention bdc, PeriodVector optionTenors, PeriodVector swapTenors, QuoteHandleVectorVector vols, DayCounter dayCounter, bool flatExtrapolation, VolatilityType type, SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t shifts) : this(NQuantLibcPINVOKE.new_SwaptionVolatilityMatrix__SWIG_4(Calendar.getCPtr(calendar), (int)bdc, PeriodVector.getCPtr(optionTenors), PeriodVector.getCPtr(swapTenors), QuoteHandleVectorVector.getCPtr(vols), DayCounter.getCPtr(dayCounter), flatExtrapolation, (int)type, SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t.getCPtr(shifts)), true)
 {
     if (NQuantLibcPINVOKE.SWIGPendingException.Pending)
     {
         throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 internal static HandleRef getCPtr(SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
예제 #7
0
 internal static HandleRef getCPtr(SWIGTYPE_p_std__vectorT_std__vectorT_double_t_t obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }