Line data Source code
1 : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2 : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
3 : !!!! !!!!
4 : !!!! ParaMonte: Parallel Monte Carlo and Machine Learning Library. !!!!
5 : !!!! !!!!
6 : !!!! Copyright (C) 2012-present, The Computational Data Science Lab !!!!
7 : !!!! !!!!
8 : !!!! This file is part of the ParaMonte library. !!!!
9 : !!!! !!!!
10 : !!!! LICENSE !!!!
11 : !!!! !!!!
12 : !!!! https://github.com/cdslaborg/paramonte/blob/main/LICENSE.md !!!!
13 : !!!! !!!!
14 : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
15 : !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16 :
17 : !> \brief This file contains the implementations of the tests of module [pm_distGamma](@ref pm_distGamma).
18 : !>
19 : !> \fintest
20 : !>
21 : !> \author
22 : !> \FatemehBagheri, 12:27 AM Tuesday, February 22, 2022, Dallas, TX
23 :
24 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
25 :
26 : submodule (test_pm_distGamma) routines
27 :
28 : use pm_arraySpace, only: setLinSpace
29 : use pm_distUnif, only: setUnifRand
30 : use pm_distGenGamma, only: getGenGammaLogPDF
31 : implicit none
32 :
33 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
34 :
35 : contains
36 :
37 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
38 :
39 : #define getGammaLogPDF_ENABLED 1
40 :
41 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
42 :
43 : #define RK_ENABLED 1
44 :
45 : #if RK5_ENABLED
46 : module procedure test_getGammaLogPDF_RK5_1
47 : use pm_kind, only: RKC => RK5
48 : #include "test_pm_distGamma@routines.inc.F90"
49 : end procedure
50 : #endif
51 :
52 : #if RK4_ENABLED
53 2 : module procedure test_getGammaLogPDF_RK4_1
54 : use pm_kind, only: RKC => RK4
55 : #include "test_pm_distGamma@routines.inc.F90"
56 : end procedure
57 : #endif
58 :
59 : #if RK3_ENABLED
60 4 : module procedure test_getGammaLogPDF_RK3_1
61 : use pm_kind, only: RKC => RK3
62 : #include "test_pm_distGamma@routines.inc.F90"
63 : end procedure
64 : #endif
65 :
66 : #if RK2_ENABLED
67 2 : module procedure test_getGammaLogPDF_RK2_1
68 : use pm_kind, only: RKC => RK2
69 : #include "test_pm_distGamma@routines.inc.F90"
70 : end procedure
71 : #endif
72 :
73 : #if RK1_ENABLED
74 2 : module procedure test_getGammaLogPDF_RK1_1
75 : use pm_kind, only: RKC => RK1
76 : #include "test_pm_distGamma@routines.inc.F90"
77 : end procedure
78 : #endif
79 :
80 : #undef RK_ENABLED
81 :
82 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
83 :
84 : #undef getGammaLogPDF_ENABLED
85 :
86 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
87 :
88 : #define setGammaLogPDF_ENABLED 1
89 :
90 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
91 :
92 : #define RK_ENABLED 1
93 :
94 : #if RK5_ENABLED
95 : module procedure test_setGammaLogPDF_RK5_1
96 : use pm_kind, only: RKC => RK5
97 : #include "test_pm_distGamma@routines.inc.F90"
98 : end procedure
99 : #endif
100 :
101 : #if RK4_ENABLED
102 2 : module procedure test_setGammaLogPDF_RK4_1
103 : use pm_kind, only: RKC => RK4
104 : #include "test_pm_distGamma@routines.inc.F90"
105 : end procedure
106 : #endif
107 :
108 : #if RK3_ENABLED
109 2 : module procedure test_setGammaLogPDF_RK3_1
110 : use pm_kind, only: RKC => RK3
111 : #include "test_pm_distGamma@routines.inc.F90"
112 : end procedure
113 : #endif
114 :
115 : #if RK2_ENABLED
116 2 : module procedure test_setGammaLogPDF_RK2_1
117 : use pm_kind, only: RKC => RK2
118 : #include "test_pm_distGamma@routines.inc.F90"
119 : end procedure
120 : #endif
121 :
122 : #if RK1_ENABLED
123 2 : module procedure test_setGammaLogPDF_RK1_1
124 : use pm_kind, only: RKC => RK1
125 : #include "test_pm_distGamma@routines.inc.F90"
126 : end procedure
127 : #endif
128 :
129 : #undef RK_ENABLED
130 :
131 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
132 :
133 : #undef setGammaLogPDF_ENABLED
134 :
135 : !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
136 :
137 : end submodule routines ! LCOV_EXCL_LINE
|