21 integer(IK) :: info, ndim, itry, ntry
= 10
22 character(:, SK),
allocatable :: format
23 type(display_type) :: disp
28 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
29 call disp%show(
"! Compute the sqrt of the determinant of the positive definite matrix.")
30 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
35 real(TKG),
allocatable :: mat(:,:)
36 real(TKG) :: detSqrtLog
37 format = getFormat(mold
= [
0._TKG], ed
= SK_
"e")
40 call disp%show(
"ndim = getUnifRand(1, 5)")
44 call disp%show(
"call setResized(mat, [ndim, ndim + 1])")
46 call disp%show(
"mat(:,1:ndim) = getCovRand(mold = 1._TKG, ndim = ndim)")
47 mat(:,
1:ndim)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
49 call disp%show( mat(:,
1:ndim) ,
format = format )
50 call disp%show(
"mat(:,1:ndim) = getMatCopy(rdpack, mat(:,1:ndim), rdpack, lowDia, init = 0._TKG) ! reset the upper.")
51 mat(:,
1:ndim)
= getMatCopy(rdpack, mat(:,
1:ndim), rdpack, lowDia, init
= 0._TKG)
53 call disp%show( mat(:,
1:ndim) ,
format = format )
54 call disp%show(
"call setMatDetSqrtLog(mat(:,1:ndim), lowDia, detSqrtLog, info, mat(:,2:ndim+1), transHerm)")
55 call setMatDetSqrtLog(mat(:,
1:ndim), lowDia, detSqrtLog, info, mat(:,
2:ndim
+1), transHerm)
56 call disp%show(
"if (info /= 0) error stop 'Cholesky factorization failed.'")
57 if (info
/= 0)
error stop 'Cholesky factorization failed.'
61 call disp%show( mat ,
format = format )
62 call disp%show(
"getMatChol(mat(:,1:ndim), lowDia)")
64 call disp%show(
"getMatMulTraceLog(getMatChol(mat(:,1:ndim), lowDia)) ! for comparison.")
66 call disp%show(
"detSqrtLog - getMatMulTraceLog(getMatChol(mat(:,1:ndim), lowDia)) ! must be one.")
69 call disp%show(
"mat(:,2:ndim+1) = getCovRand(mold = 1._TKG, ndim = ndim)")
70 mat(:,
2:ndim
+1)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
71 call disp%show(
"mat(:,2:ndim+1) = getMatCopy(rdpack, mat(:,2:ndim+1), rdpack, uppDia, init = 0._TKG) ! reset the lower.")
72 mat(:,
2:ndim
+1)
= getMatCopy(rdpack, mat(:,
2:ndim
+1), rdpack, uppDia, init
= 0._TKG)
74 call disp%show( mat(:,
2:ndim
+1) ,
format = format )
75 call disp%show(
"call setMatDetSqrtLog(mat(:,2:ndim+1), uppDia, detSqrtLog, info, mat(:,1:ndim), transHerm)")
76 call setMatDetSqrtLog(mat(:,
2:ndim
+1), uppDia, detSqrtLog, info, mat(:,
1:ndim), transHerm)
77 call disp%show(
"if (info /= 0) error stop 'Cholesky factorization failed.'")
78 if (info
/= 0)
error stop 'Cholesky factorization failed.'
82 call disp%show( mat ,
format = format )
83 call disp%show(
"getMatChol(mat(:,2:ndim+1), uppDia)")
85 call disp%show(
"getMatMulTraceLog(getMatChol(mat(:,2:ndim+1), uppDia)) ! for comparison.")
87 call disp%show(
"detSqrtLog - getMatMulTraceLog(getMatChol(mat(:,2:ndim+1), uppDia)) ! must be one.")
95 integer(IK),
parameter :: ndim
= 3
96 complex(TKG),
allocatable :: tmp(:,:)
97 complex(TKG),
parameter :: mat(
*,
*)
= reshape( [ (
9.0,
0.0), (
3.0,
3.0), (
3.0,
-3.0)
&
98 , (
3.0,
-3.0),(
18.0,
0.0), (
8.0,
-6.0)
&
99 , (
3.0,
3.0), (
8.0,
6.0),(
43.0,
0.0)
&
100 ], shape
= [ndim, ndim], order
= [
2,
1])
101 real(TKG) :: detSqrtLog
102 format = getFormat(
mold = [(
0._TKG,
0._TKG)], ed
= SK_
"e")
105 call disp%show( mat ,
format = format )
106 call disp%show(
"call setResized(tmp, [ndim, ndim + 1])")
108 call disp%show(
"tmp(:,1:ndim) = getMatCopy(rdpack, mat, rdpack, lowDia, init = (0._TKG, 0._TKG)) ! reset the upper.")
109 tmp(:,
1:ndim)
= getMatCopy(rdpack, mat, rdpack, lowDia, init
= (
0._TKG,
0._TKG))
111 call disp%show( tmp(:,
1:ndim) ,
format = format )
112 call disp%show(
"call setMatDetSqrtLog(tmp(:,1:ndim), lowDia, detSqrtLog, info, tmp(:,2:ndim+1), transHerm)")
113 call setMatDetSqrtLog(tmp(:,
1:ndim), lowDia, detSqrtLog, info, tmp(:,
2:ndim
+1), transHerm)
114 call disp%show(
"if (info /= 0) error stop 'Cholesky factorization failed.'")
115 if (info
/= 0)
error stop 'Cholesky factorization failed.'
119 call disp%show( tmp ,
format = format )
120 call disp%show(
"getMatMulTraceLog(getMatChol(tmp(:,1:ndim), lowDia)) ! for comparison.")
122 call disp%show(
"detSqrtLog - getMatMulTraceLog(getMatChol(tmp(:,1:ndim), lowDia)) ! must be one")
125 call disp%show(
"tmp(:,2:ndim+1) = getMatCopy(rdpack, mat(:,1:ndim), rdpack, uppDia, init = (0._TKG, 0._TKG)) ! reset the upper.")
126 tmp(:,
2:ndim
+1)
= getMatCopy(rdpack, mat(:,
1:ndim), rdpack, uppDia, init
= (
0._TKG,
0._TKG))
128 call disp%show( tmp(:,
2:ndim
+1) ,
format = format )
129 call disp%show(
"call setMatDetSqrtLog(tmp(:,2:ndim+1), uppDia, detSqrtLog, info, tmp(:,1:ndim), transHerm)")
130 call setMatDetSqrtLog(tmp(:,
2:ndim
+1), uppDia, detSqrtLog, info, tmp(:,
1:ndim), transHerm)
131 call disp%show(
"if (info /= 0) error stop 'Cholesky factorization failed.'")
132 if (info
/= 0)
error stop 'Cholesky factorization failed.'
136 call disp%show( tmp ,
format = format )
137 call disp%show(
"getMatMulTraceLog(getMatChol(tmp(:,2:ndim+1), uppDia)) ! for comparison.")
139 call disp%show(
"detSqrtLog - getMatMulTraceLog(getMatChol(tmp(:,2:ndim+1), uppDia)) ! must be one.")
146 integer(IK),
parameter :: ndim
= 3
147 complex(TKG),
allocatable :: tmp(:,:)
148 complex(TKG),
parameter :: mat(
*,
*)
= reshape( [ (
25.0,
0.0), (
-5.0,
-5.0), (
10.0,
5.0)
&
149 , (
-5.0,
5.0), (
51.0,
0.0), (
4.0,
-6.0)
&
150 , (
10.0,
-5.0), (
4.0,
6.0), (
71.0,
0.0)
&
151 ], shape
= [ndim, ndim], order
= [
2,
1])
152 real(TKG) :: detSqrtLog
153 format = getFormat(
mold = [(
0._TKG,
0._TKG)], ed
= SK_
"e")
156 call disp%show( mat ,
format = format )
157 call disp%show(
"call setResized(tmp, [ndim, ndim + 1])")
159 call disp%show(
"tmp(:,1:ndim) = getMatCopy(rdpack, mat, rdpack, lowDia, init = (0._TKG, 0._TKG)) ! reset the upper.")
160 tmp(:,
1:ndim)
= getMatCopy(rdpack, mat, rdpack, lowDia, init
= (
0._TKG,
0._TKG))
162 call disp%show( tmp(:,
1:ndim) ,
format = format )
163 call disp%show(
"call setMatDetSqrtLog(tmp(:,1:ndim), lowDia, detSqrtLog, info, tmp(:,2:ndim+1), transHerm)")
164 call setMatDetSqrtLog(tmp(:,
1:ndim), lowDia, detSqrtLog, info, tmp(:,
2:ndim
+1), transHerm)
165 call disp%show(
"if (info /= 0) error stop 'Cholesky factorization failed.'")
166 if (info
/= 0)
error stop 'Cholesky factorization failed.'
170 call disp%show( tmp ,
format = format )
171 call disp%show(
"getMatMulTraceLog(getMatChol(tmp(:,1:ndim), lowDia)) ! for comparison.")
173 call disp%show(
"detSqrtLog - getMatMulTraceLog(getMatChol(tmp(:,1:ndim), lowDia)) ! must be one")
176 call disp%show(
"tmp(:,2:ndim+1) = getMatCopy(rdpack, mat(:,1:ndim), rdpack, uppDia, init = (0._TKG, 0._TKG)) ! reset the upper.")
177 tmp(:,
2:ndim
+1)
= getMatCopy(rdpack, mat(:,
1:ndim), rdpack, uppDia, init
= (
0._TKG,
0._TKG))
179 call disp%show( tmp(:,
2:ndim
+1) ,
format = format )
180 call disp%show(
"call setMatDetSqrtLog(tmp(:,2:ndim+1), uppDia, detSqrtLog, info, tmp(:,1:ndim), transHerm)")
181 call setMatDetSqrtLog(tmp(:,
2:ndim
+1), uppDia, detSqrtLog, info, tmp(:,
1:ndim), transHerm)
182 call disp%show(
"if (info /= 0) error stop 'Cholesky factorization failed.'")
183 if (info
/= 0)
error stop 'Cholesky factorization failed.'
187 call disp%show( tmp ,
format = format )
188 call disp%show(
"getMatMulTraceLog(getMatChol(tmp(:,2:ndim+1), uppDia)) ! for comparison.")
190 call disp%show(
"detSqrtLog - getMatMulTraceLog(getMatChol(tmp(:,2:ndim+1), uppDia)) ! must be one.")
Allocate or resize (shrink or expand) an input allocatable scalar string or array of rank 1....
Generate and return a random positive-definite (correlation or covariance) matrix using the Gram meth...
Generate and return a scalar or a contiguous array of rank 1 of length s1 of randomly uniformly distr...
This is a generic method of the derived type display_type with pass attribute.
This is a generic method of the derived type display_type with pass attribute.
Generate and return the upper or the lower Cholesky factorization of the input symmetric positive-def...
Generate and return a copy of a desired subset of the input source matrix of arbitrary shape (:) or (...
Generate and return the natural logarithm of the square-root of the determinant of the input positive...
Generate and return the full inverse of an input matrix of general or triangular form directly or thr...
Generate and return the natural logarithm of the multiplicative trace of an input square matrix of ty...
This module contains procedures and generic interfaces for resizing allocatable arrays of various typ...
This module contains classes and procedures for generating random matrices distributed on the space o...
This module contains classes and procedures for computing various statistical quantities related to t...
This module contains classes and procedures for input/output (IO) or generic display operations on st...
type(display_type) disp
This is a scalar module variable an object of type display_type for general display.
This module defines the relevant Fortran kind type-parameters frequently used in the ParaMonte librar...
integer, parameter LK
The default logical kind in the ParaMonte library: kind(.true.) in Fortran, kind(....
integer, parameter CKS
The single-precision complex kind in Fortran mode. On most platforms, this is a 32-bit real kind.
integer, parameter IK
The default integer kind in the ParaMonte library: int32 in Fortran, c_int32_t in C-Fortran Interoper...
integer, parameter SK
The default character kind in the ParaMonte library: kind("a") in Fortran, c_char in C-Fortran Intero...
integer, parameter RKS
The single-precision real kind in Fortran mode. On most platforms, this is an 32-bit real kind.
This module contains procedures and generic interfaces for computing the Cholesky factorization of po...
This module contains procedures and generic interfaces relevant to copying (diagonal or upper/lower t...
This module contains abstract and concrete derived types and procedures related to the inversion of s...
This module contains procedures and generic interfaces for computing the additive or multiplicative t...
Generate and return an object of type display_type.
11mat(:,
1:ndim)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
13 0.100000E+01,
-0.476027E+00
14-0.476027E+00,
0.100000E+01
15mat(:,
1:ndim)
= getMatCopy(rdpack, mat(:,
1:ndim), rdpack, lowDia, init
= 0._TKG)
17 0.100000E+01,
0.000000E+00
18-0.476027E+00,
0.100000E+01
19call setMatDetSqrtLog(mat(:,
1:ndim), lowDia, detSqrtLog, info, mat(:,
2:ndim
+1), transHerm)
20if (info
/= 0)
error stop 'Cholesky factorization failed.'
24 0.100000E+01,
0.100000E+01,
-0.476027E+00
25-0.476027E+00,
0.100000E+01,
0.879431E+00
27 0.100000E+01,
0.000000E+00
28-0.476027E+00,
0.879431E+00
34mat(:,
2:ndim
+1)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
35mat(:,
2:ndim
+1)
= getMatCopy(rdpack, mat(:,
2:ndim
+1), rdpack, uppDia, init
= 0._TKG)
37 0.100000E+01,
0.811936E+00
38 0.000000E+00,
0.100000E+01
39call setMatDetSqrtLog(mat(:,
2:ndim
+1), uppDia, detSqrtLog, info, mat(:,
1:ndim), transHerm)
40if (info
/= 0)
error stop 'Cholesky factorization failed.'
44 0.100000E+01,
0.100000E+01,
0.811936E+00
45 0.811936E+00,
0.583746E+00,
0.100000E+01
47 0.100000E+01,
0.811936E+00
48 0.000000E+00,
0.583746E+00
59mat(:,
1:ndim)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
61 0.100000E+01,
-0.647685E-01,
-0.286596E+00
62-0.647685E-01,
0.100000E+01,
-0.317350E+00
63-0.286596E+00,
-0.317350E+00,
0.100000E+01
64mat(:,
1:ndim)
= getMatCopy(rdpack, mat(:,
1:ndim), rdpack, lowDia, init
= 0._TKG)
66 0.100000E+01,
0.000000E+00,
0.000000E+00
67-0.647685E-01,
0.100000E+01,
0.000000E+00
68-0.286596E+00,
-0.317350E+00,
0.100000E+01
69call setMatDetSqrtLog(mat(:,
1:ndim), lowDia, detSqrtLog, info, mat(:,
2:ndim
+1), transHerm)
70if (info
/= 0)
error stop 'Cholesky factorization failed.'
74 0.100000E+01,
0.100000E+01,
-0.647685E-01,
-0.286596E+00
75-0.647685E-01,
0.100000E+01,
0.997900E+00,
-0.336619E+00
76-0.286596E+00,
-0.317350E+00,
0.100000E+01,
0.896967E+00
78 0.100000E+01,
0.000000E+00,
0.000000E+00
79-0.647685E-01,
0.997900E+00,
0.000000E+00
80-0.286596E+00,
-0.336619E+00,
0.896967E+00
86mat(:,
2:ndim
+1)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
87mat(:,
2:ndim
+1)
= getMatCopy(rdpack, mat(:,
2:ndim
+1), rdpack, uppDia, init
= 0._TKG)
89 0.100000E+01,
0.278812E+00,
0.185030E+00
90 0.000000E+00,
0.100000E+01,
-0.621793E+00
91 0.000000E+00,
0.000000E+00,
0.100000E+01
92call setMatDetSqrtLog(mat(:,
2:ndim
+1), uppDia, detSqrtLog, info, mat(:,
1:ndim), transHerm)
93if (info
/= 0)
error stop 'Cholesky factorization failed.'
97 0.100000E+01,
0.100000E+01,
0.278812E+00,
0.185030E+00
98 0.278812E+00,
0.960346E+00,
0.100000E+01,
-0.621793E+00
99 0.185030E+00,
-0.701186E+00,
0.688550E+00,
0.100000E+01
101 0.100000E+01,
0.278812E+00,
0.185030E+00
102 0.000000E+00,
0.960346E+00,
-0.701186E+00
103 0.000000E+00,
0.000000E+00,
0.688550E+00
114mat(:,
1:ndim)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
117mat(:,
1:ndim)
= getMatCopy(rdpack, mat(:,
1:ndim), rdpack, lowDia, init
= 0._TKG)
120call setMatDetSqrtLog(mat(:,
1:ndim), lowDia, detSqrtLog, info, mat(:,
2:ndim
+1), transHerm)
121if (info
/= 0)
error stop 'Cholesky factorization failed.'
125 0.100000E+01,
0.100000E+01
133mat(:,
2:ndim
+1)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
134mat(:,
2:ndim
+1)
= getMatCopy(rdpack, mat(:,
2:ndim
+1), rdpack, uppDia, init
= 0._TKG)
137call setMatDetSqrtLog(mat(:,
2:ndim
+1), uppDia, detSqrtLog, info, mat(:,
1:ndim), transHerm)
138if (info
/= 0)
error stop 'Cholesky factorization failed.'
142 0.100000E+01,
0.100000E+01
155mat(:,
1:ndim)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
158mat(:,
1:ndim)
= getMatCopy(rdpack, mat(:,
1:ndim), rdpack, lowDia, init
= 0._TKG)
161call setMatDetSqrtLog(mat(:,
1:ndim), lowDia, detSqrtLog, info, mat(:,
2:ndim
+1), transHerm)
162if (info
/= 0)
error stop 'Cholesky factorization failed.'
166 0.100000E+01,
0.100000E+01
174mat(:,
2:ndim
+1)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
175mat(:,
2:ndim
+1)
= getMatCopy(rdpack, mat(:,
2:ndim
+1), rdpack, uppDia, init
= 0._TKG)
178call setMatDetSqrtLog(mat(:,
2:ndim
+1), uppDia, detSqrtLog, info, mat(:,
1:ndim), transHerm)
179if (info
/= 0)
error stop 'Cholesky factorization failed.'
183 0.100000E+01,
0.100000E+01
196mat(:,
1:ndim)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
199mat(:,
1:ndim)
= getMatCopy(rdpack, mat(:,
1:ndim), rdpack, lowDia, init
= 0._TKG)
202call setMatDetSqrtLog(mat(:,
1:ndim), lowDia, detSqrtLog, info, mat(:,
2:ndim
+1), transHerm)
203if (info
/= 0)
error stop 'Cholesky factorization failed.'
207 0.100000E+01,
0.100000E+01
215mat(:,
2:ndim
+1)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
216mat(:,
2:ndim
+1)
= getMatCopy(rdpack, mat(:,
2:ndim
+1), rdpack, uppDia, init
= 0._TKG)
219call setMatDetSqrtLog(mat(:,
2:ndim
+1), uppDia, detSqrtLog, info, mat(:,
1:ndim), transHerm)
220if (info
/= 0)
error stop 'Cholesky factorization failed.'
224 0.100000E+01,
0.100000E+01
237mat(:,
1:ndim)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
240mat(:,
1:ndim)
= getMatCopy(rdpack, mat(:,
1:ndim), rdpack, lowDia, init
= 0._TKG)
243call setMatDetSqrtLog(mat(:,
1:ndim), lowDia, detSqrtLog, info, mat(:,
2:ndim
+1), transHerm)
244if (info
/= 0)
error stop 'Cholesky factorization failed.'
248 0.100000E+01,
0.100000E+01
256mat(:,
2:ndim
+1)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
257mat(:,
2:ndim
+1)
= getMatCopy(rdpack, mat(:,
2:ndim
+1), rdpack, uppDia, init
= 0._TKG)
260call setMatDetSqrtLog(mat(:,
2:ndim
+1), uppDia, detSqrtLog, info, mat(:,
1:ndim), transHerm)
261if (info
/= 0)
error stop 'Cholesky factorization failed.'
265 0.100000E+01,
0.100000E+01
278mat(:,
1:ndim)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
280 0.100000E+01,
0.988230E+00
281 0.988230E+00,
0.100000E+01
282mat(:,
1:ndim)
= getMatCopy(rdpack, mat(:,
1:ndim), rdpack, lowDia, init
= 0._TKG)
284 0.100000E+01,
0.000000E+00
285 0.988230E+00,
0.100000E+01
286call setMatDetSqrtLog(mat(:,
1:ndim), lowDia, detSqrtLog, info, mat(:,
2:ndim
+1), transHerm)
287if (info
/= 0)
error stop 'Cholesky factorization failed.'
291 0.100000E+01,
0.100000E+01,
0.988230E+00
292 0.988230E+00,
0.100000E+01,
0.152972E+00
294 0.100000E+01,
0.000000E+00
295 0.988230E+00,
0.152972E+00
301mat(:,
2:ndim
+1)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
302mat(:,
2:ndim
+1)
= getMatCopy(rdpack, mat(:,
2:ndim
+1), rdpack, uppDia, init
= 0._TKG)
304 0.100000E+01,
0.989782E+00
305 0.000000E+00,
0.100000E+01
306call setMatDetSqrtLog(mat(:,
2:ndim
+1), uppDia, detSqrtLog, info, mat(:,
1:ndim), transHerm)
307if (info
/= 0)
error stop 'Cholesky factorization failed.'
311 0.100000E+01,
0.100000E+01,
0.989782E+00
312 0.989782E+00,
0.142586E+00,
0.100000E+01
314 0.100000E+01,
0.989782E+00
315 0.000000E+00,
0.142586E+00
326mat(:,
1:ndim)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
329mat(:,
1:ndim)
= getMatCopy(rdpack, mat(:,
1:ndim), rdpack, lowDia, init
= 0._TKG)
332call setMatDetSqrtLog(mat(:,
1:ndim), lowDia, detSqrtLog, info, mat(:,
2:ndim
+1), transHerm)
333if (info
/= 0)
error stop 'Cholesky factorization failed.'
337 0.100000E+01,
0.100000E+01
345mat(:,
2:ndim
+1)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
346mat(:,
2:ndim
+1)
= getMatCopy(rdpack, mat(:,
2:ndim
+1), rdpack, uppDia, init
= 0._TKG)
349call setMatDetSqrtLog(mat(:,
2:ndim
+1), uppDia, detSqrtLog, info, mat(:,
1:ndim), transHerm)
350if (info
/= 0)
error stop 'Cholesky factorization failed.'
354 0.100000E+01,
0.100000E+01
367mat(:,
1:ndim)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
369 0.100000E+01,
0.997602E+00,
-0.160301E+00
370 0.997602E+00,
0.100000E+01,
-0.202446E+00
371-0.160301E+00,
-0.202446E+00,
0.100000E+01
372mat(:,
1:ndim)
= getMatCopy(rdpack, mat(:,
1:ndim), rdpack, lowDia, init
= 0._TKG)
374 0.100000E+01,
0.000000E+00,
0.000000E+00
375 0.997602E+00,
0.100000E+01,
0.000000E+00
376-0.160301E+00,
-0.202446E+00,
0.100000E+01
377call setMatDetSqrtLog(mat(:,
1:ndim), lowDia, detSqrtLog, info, mat(:,
2:ndim
+1), transHerm)
378if (info
/= 0)
error stop 'Cholesky factorization failed.'
382 0.100000E+01,
0.100000E+01,
0.997602E+00,
-0.160301E+00
383 0.997602E+00,
0.100000E+01,
0.692103E-01,
-0.614491E+00
384-0.160301E+00,
-0.202446E+00,
0.100000E+01,
0.772466E+00
386 0.100000E+01,
0.000000E+00,
0.000000E+00
387 0.997602E+00,
0.692103E-01,
0.000000E+00
388-0.160301E+00,
-0.614491E+00,
0.772466E+00
394mat(:,
2:ndim
+1)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
395mat(:,
2:ndim
+1)
= getMatCopy(rdpack, mat(:,
2:ndim
+1), rdpack, uppDia, init
= 0._TKG)
397 0.100000E+01,
0.434083E-01,
0.354631E+00
398 0.000000E+00,
0.100000E+01,
0.877353E+00
399 0.000000E+00,
0.000000E+00,
0.100000E+01
400call setMatDetSqrtLog(mat(:,
2:ndim
+1), uppDia, detSqrtLog, info, mat(:,
1:ndim), transHerm)
401if (info
/= 0)
error stop 'Cholesky factorization failed.'
405 0.100000E+01,
0.100000E+01,
0.434083E-01,
0.354631E+00
406 0.434083E-01,
0.999057E+00,
0.100000E+01,
0.877353E+00
407 0.354631E+00,
0.862772E+00,
0.360362E+00,
0.100000E+01
409 0.100000E+01,
0.434083E-01,
0.354631E+00
410 0.000000E+00,
0.999057E+00,
0.862772E+00
411 0.000000E+00,
0.000000E+00,
0.360362E+00
422mat(:,
1:ndim)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
424 0.100000E+01,
-0.784509E+00,
0.397969E+00
425-0.784509E+00,
0.100000E+01,
0.142067E+00
426 0.397969E+00,
0.142067E+00,
0.100000E+01
427mat(:,
1:ndim)
= getMatCopy(rdpack, mat(:,
1:ndim), rdpack, lowDia, init
= 0._TKG)
429 0.100000E+01,
0.000000E+00,
0.000000E+00
430-0.784509E+00,
0.100000E+01,
0.000000E+00
431 0.397969E+00,
0.142067E+00,
0.100000E+01
432call setMatDetSqrtLog(mat(:,
1:ndim), lowDia, detSqrtLog, info, mat(:,
2:ndim
+1), transHerm)
433if (info
/= 0)
error stop 'Cholesky factorization failed.'
437 0.100000E+01,
0.100000E+01,
-0.784509E+00,
0.397969E+00
438-0.784509E+00,
0.100000E+01,
0.620118E+00,
0.732567E+00
439 0.397969E+00,
0.142067E+00,
0.100000E+01,
0.552238E+00
441 0.100000E+01,
0.000000E+00,
0.000000E+00
442-0.784509E+00,
0.620118E+00,
0.000000E+00
443 0.397969E+00,
0.732567E+00,
0.552238E+00
449mat(:,
2:ndim
+1)
= getCovRand(
mold = 1._TKG, ndim
= ndim)
450mat(:,
2:ndim
+1)
= getMatCopy(rdpack, mat(:,
2:ndim
+1), rdpack, uppDia, init
= 0._TKG)
452 0.100000E+01,
0.987103E+00,
-0.774583E+00
453 0.000000E+00,
0.100000E+01,
-0.838769E+00
454 0.000000E+00,
0.000000E+00,
0.100000E+01
455call setMatDetSqrtLog(mat(:,
2:ndim
+1), uppDia, detSqrtLog, info, mat(:,
1:ndim), transHerm)
456if (info
/= 0)
error stop 'Cholesky factorization failed.'
460 0.100000E+01,
0.100000E+01,
0.987103E+00,
-0.774583E+00
461 0.987103E+00,
0.160085E+00,
0.100000E+01,
-0.838769E+00
462-0.774583E+00,
-0.463351E+00,
0.430495E+00,
0.100000E+01
464 0.100000E+01,
0.987103E+00,
-0.774583E+00
465 0.000000E+00,
0.160085E+00,
-0.463351E+00
466 0.000000E+00,
0.000000E+00,
0.430495E+00
474(
0.900000E+01,
0.000000E+00), (
0.300000E+01,
0.300000E+01), (
0.300000E+01,
-0.300000E+01)
475(
0.300000E+01,
-0.300000E+01), (
0.180000E+02,
0.000000E+00), (
0.800000E+01,
-0.600000E+01)
476(
0.300000E+01,
0.300000E+01), (
0.800000E+01,
0.600000E+01), (
0.430000E+02,
0.000000E+00)
478tmp(:,
1:ndim)
= getMatCopy(rdpack, mat, rdpack, lowDia, init
= (
0._TKG,
0._TKG))
480(
0.900000E+01,
0.000000E+00), (
0.000000E+00,
0.000000E+00), (
0.000000E+00,
0.000000E+00)
481(
0.300000E+01,
-0.300000E+01), (
0.180000E+02,
0.000000E+00), (
0.000000E+00,
0.000000E+00)
482(
0.300000E+01,
0.300000E+01), (
0.800000E+01,
0.600000E+01), (
0.430000E+02,
0.000000E+00)
483call setMatDetSqrtLog(tmp(:,
1:ndim), lowDia, detSqrtLog, info, tmp(:,
2:ndim
+1), transHerm)
484if (info
/= 0)
error stop 'Cholesky factorization failed.'
488(
0.900000E+01,
0.000000E+00), (
0.300000E+01,
0.000000E+00), (
0.100000E+01,
0.100000E+01), (
0.100000E+01,
-0.100000E+01)
489(
0.300000E+01,
-0.300000E+01), (
0.180000E+02,
0.000000E+00), (
0.400000E+01,
0.000000E+00), (
0.200000E+01,
-0.100000E+01)
490(
0.300000E+01,
0.300000E+01), (
0.800000E+01,
0.600000E+01), (
0.430000E+02,
0.000000E+00), (
0.600000E+01,
0.000000E+00)
492(
+4.27666616,
+0.00000000)
494(
+0.00000000,
+0.00000000)
496tmp(:,
2:ndim
+1)
= getMatCopy(rdpack, mat(:,
1:ndim), rdpack, uppDia, init
= (
0._TKG,
0._TKG))
498(
0.900000E+01,
0.000000E+00), (
0.300000E+01,
0.300000E+01), (
0.300000E+01,
-0.300000E+01)
499(
0.000000E+00,
0.000000E+00), (
0.180000E+02,
0.000000E+00), (
0.800000E+01,
-0.600000E+01)
500(
0.000000E+00,
0.000000E+00), (
0.000000E+00,
0.000000E+00), (
0.430000E+02,
0.000000E+00)
501call setMatDetSqrtLog(tmp(:,
2:ndim
+1), uppDia, detSqrtLog, info, tmp(:,
1:ndim), transHerm)
502if (info
/= 0)
error stop 'Cholesky factorization failed.'
506(
0.300000E+01,
0.000000E+00), (
0.900000E+01,
0.000000E+00), (
0.300000E+01,
0.300000E+01), (
0.300000E+01,
-0.300000E+01)
507(
0.100000E+01,
-0.100000E+01), (
0.400000E+01,
0.000000E+00), (
0.180000E+02,
0.000000E+00), (
0.800000E+01,
-0.600000E+01)
508(
0.100000E+01,
0.100000E+01), (
0.200000E+01,
0.100000E+01), (
0.600000E+01,
0.000000E+00), (
0.430000E+02,
0.000000E+00)
510(
+4.27666616,
+0.00000000)
512(
+0.00000000,
+0.00000000)
516(
0.250000E+02,
0.000000E+00), (
-0.500000E+01,
-0.500000E+01), (
0.100000E+02,
0.500000E+01)
517(
-0.500000E+01,
0.500000E+01), (
0.510000E+02,
0.000000E+00), (
0.400000E+01,
-0.600000E+01)
518(
0.100000E+02,
-0.500000E+01), (
0.400000E+01,
0.600000E+01), (
0.710000E+02,
0.000000E+00)
520tmp(:,
1:ndim)
= getMatCopy(rdpack, mat, rdpack, lowDia, init
= (
0._TKG,
0._TKG))
522(
0.250000E+02,
0.000000E+00), (
0.000000E+00,
0.000000E+00), (
0.000000E+00,
0.000000E+00)
523(
-0.500000E+01,
0.500000E+01), (
0.510000E+02,
0.000000E+00), (
0.000000E+00,
0.000000E+00)
524(
0.100000E+02,
-0.500000E+01), (
0.400000E+01,
0.600000E+01), (
0.710000E+02,
0.000000E+00)
525call setMatDetSqrtLog(tmp(:,
1:ndim), lowDia, detSqrtLog, info, tmp(:,
2:ndim
+1), transHerm)
526if (info
/= 0)
error stop 'Cholesky factorization failed.'
530(
0.250000E+02,
0.000000E+00), (
0.500000E+01,
0.000000E+00), (
-0.100000E+01,
-0.100000E+01), (
0.200000E+01,
0.100000E+01)
531(
-0.500000E+01,
0.500000E+01), (
0.510000E+02,
0.000000E+00), (
0.700000E+01,
0.000000E+00), (
0.100000E+01,
-0.100000E+01)
532(
0.100000E+02,
-0.500000E+01), (
0.400000E+01,
0.600000E+01), (
0.710000E+02,
0.000000E+00), (
0.800000E+01,
0.000000E+00)
534(
+5.63478947,
+0.00000000)
536(
+0.00000000,
+0.00000000)
538tmp(:,
2:ndim
+1)
= getMatCopy(rdpack, mat(:,
1:ndim), rdpack, uppDia, init
= (
0._TKG,
0._TKG))
540(
0.250000E+02,
0.000000E+00), (
-0.500000E+01,
-0.500000E+01), (
0.100000E+02,
0.500000E+01)
541(
0.000000E+00,
0.000000E+00), (
0.510000E+02,
0.000000E+00), (
0.400000E+01,
-0.600000E+01)
542(
0.000000E+00,
0.000000E+00), (
0.000000E+00,
0.000000E+00), (
0.710000E+02,
0.000000E+00)
543call setMatDetSqrtLog(tmp(:,
2:ndim
+1), uppDia, detSqrtLog, info, tmp(:,
1:ndim), transHerm)
544if (info
/= 0)
error stop 'Cholesky factorization failed.'
548(
0.500000E+01,
0.000000E+00), (
0.250000E+02,
0.000000E+00), (
-0.500000E+01,
-0.500000E+01), (
0.100000E+02,
0.500000E+01)
549(
-0.100000E+01,
0.100000E+01), (
0.700000E+01,
0.000000E+00), (
0.510000E+02,
0.000000E+00), (
0.400000E+01,
-0.600000E+01)
550(
0.200000E+01,
-0.100000E+01), (
0.100000E+01,
0.100000E+01), (
0.800000E+01,
0.000000E+00), (
0.710000E+02,
0.000000E+00)
552(
+5.63478947,
+0.00000000)
554(
+0.00000000,
+0.00000000)