@@ -62,6 +62,10 @@ module flc_random
6262 module procedure swigf_uniform_int_distribution__SWIG_1, swigf_uniform_int_distribution__SWIG_2
6363 end interface
6464 public :: uniform_int_distribution
65+ interface discrete_distribution
66+ module procedure swigf_discrete_distribution__SWIG_1, swigf_discrete_distribution__SWIG_2
67+ end interface
68+ public :: discrete_distribution
6569
6670! WRAPPER DECLARATIONS
6771interface
@@ -223,6 +227,26 @@ subroutine swigc_normal_distribution(farg1, farg2, farg3, farg4) &
223227type (SwigArrayWrapper) :: farg4
224228end subroutine
225229
230+ subroutine swigc_discrete_distribution__SWIG_1 (farg1 , farg3 , farg4 ) &
231+ bind(C, name= " _wrap_discrete_distribution__SWIG_1" )
232+ use , intrinsic :: ISO_C_BINDING
233+ import :: swigarraywrapper
234+ import :: swigclasswrapper
235+ type (SwigArrayWrapper) :: farg1
236+ type (SwigClassWrapper) :: farg3
237+ type (SwigArrayWrapper) :: farg4
238+ end subroutine
239+
240+ subroutine swigc_discrete_distribution__SWIG_2 (farg1 , farg3 , farg4 ) &
241+ bind(C, name= " _wrap_discrete_distribution__SWIG_2" )
242+ use , intrinsic :: ISO_C_BINDING
243+ import :: swigarraywrapper
244+ import :: swigclasswrapper
245+ type (SwigArrayWrapper) :: farg1
246+ type (SwigClassWrapper) :: farg3
247+ type (SwigArrayWrapper) :: farg4
248+ end subroutine
249+
226250end interface
227251
228252
@@ -522,5 +546,35 @@ subroutine normal_distribution(mean, stddev, engine, data)
522546call swigc_normal_distribution(farg1, farg2, farg3, farg4)
523547end subroutine
524548
549+ subroutine swigf_discrete_distribution__SWIG_1 (weights , engine , data )
550+ use , intrinsic :: ISO_C_BINDING
551+ integer (C_INT32_T), dimension (:), intent (in ), target :: weights
552+ class(MersenneEngine4), intent (in ) :: engine
553+ integer (C_INT32_T), dimension (:), target :: data
554+ type (SwigArrayWrapper) :: farg1
555+ type (SwigClassWrapper) :: farg3
556+ type (SwigArrayWrapper) :: farg4
557+
558+ call SWIGTM_fin_int32_t_Sb__SB_(weights, farg1)
559+ farg3 = engine% swigdata
560+ call SWIGTM_fin_int32_t_Sb__SB_(data , farg4)
561+ call swigc_discrete_distribution__SWIG_1(farg1, farg3, farg4)
562+ end subroutine
563+
564+ subroutine swigf_discrete_distribution__SWIG_2 (weights , engine , data )
565+ use , intrinsic :: ISO_C_BINDING
566+ integer (C_INT64_T), dimension (:), intent (in ), target :: weights
567+ class(MersenneEngine4), intent (in ) :: engine
568+ integer (C_INT64_T), dimension (:), target :: data
569+ type (SwigArrayWrapper) :: farg1
570+ type (SwigClassWrapper) :: farg3
571+ type (SwigArrayWrapper) :: farg4
572+
573+ call SWIGTM_fin_int64_t_Sb__SB_(weights, farg1)
574+ farg3 = engine% swigdata
575+ call SWIGTM_fin_int64_t_Sb__SB_(data , farg4)
576+ call swigc_discrete_distribution__SWIG_2(farg1, farg3, farg4)
577+ end subroutine
578+
525579
526580end module
0 commit comments