Generate and return .true.
if and only if the input matrix is of the specified input class
.
See pm_matrixClass for the mathematical definitions of different matrix classes.
- Parameters
-
[in] | mat | : The input matrix of arbitrary shape (:,:) of,
-
type
character of kind any supported by the processor (e.g., SK, SKA, SKD , or SKU) of arbitrary length type parameter, or
-
type
integer of kind any supported by the processor (e.g., IK, IK8, IK16, IK32, or IK64), or
-
type
logical of kind any supported by the processor (e.g., LK), or
-
type
complex of kind any supported by the processor (e.g., CK, CK32, CK64, or CK128), or
-
type
real of kind any supported by the processor (e.g., RK, RK32, RK64, or RK128),
containing the matrix whose class membership is to be tested.
|
[in] | class | : The input scalar constant that can be one of the following:
-
The scalar constant symmetric implying the matrix is square Symmetric.
-
The scalar constant hermitian implying the matrix is square Hermitian.
-
The scalar constant posdefmat implying the matrix is square Hermitian Positive Definite.
|
[in] | subset | : The input scalar constant that can be one of the following:
-
The scalar constant uppDia implying the upper-diagonal subset of the input matrix must be used for testing.
-
The scalar constant lowDia implying the lower-diagonal subset of the input matrix must be used for testing.
Specifying this argument leads to faster runtimes.
If missing, the full input matrix will be considered for positive-definiteness testing.
(optional. It can be present only if the input argument class is set to posdefmat.) |
[in] | pack | : The input scalar constant that can be one of the following:
-
The scalar constant rdpack implying the Rectangular Default Packing format of the input matrix.
-
The scalar constant rfpack implying the Rectangular Full Packing format of the input matrix.
(optional. It must be present if and only if the input arguments class = posdefmat and the input argument subset is present.) |
- Returns
itis
: The output scalar logical
of default kind LK that is .true.
if and only if the input matrix belongs to the specified matrix type class
.
Possible calling interfaces ⛓
!
Generate and return .true. if and only if the input matrix is of the specified input class.
This module contains abstract and concrete derived types that are required for compile-time resolutio...
- Warning
- The
pure
procedure(s) documented herein become impure
when the ParaMonte library is compiled with preprocessor macro CHECK_ENABLED=1
.
By default, these procedures are pure
in release
build and impure
in debug
and testing
builds.
- See also
- pm_matrixChol
pm_matrixPack
pm_matrixSubset
Example usage ⛓
15 integer(IK) :: i,
shape(
2)
16 type(display_type) :: disp
20 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
21 call disp%show(
"! Check for Symmetric/Hermitian matrix.")
22 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
26 character(
2),
allocatable :: choice(:), mat(:,:)
29 call disp%show(
"choice = ['AA', 'BB'] ! example matrix element values.")
31 call disp%show(
"mat = getMatInit(int(getUnifRand(2, 4, 2), IK), uppLowDia, vupp = getChoice(choice), vlow = getChoice(choice), vdia = getUnifRand(choice(1), choice(2)))")
34 call disp%show( mat , deliml
= """" )
35 call disp%show(
"isMatClass(mat, class = symmetric)")
37 call disp%show(
"isMatClass(mat, class = hermitian)")
43 integer,
allocatable :: choice(:), mat(:,:)
46 call disp%show(
"choice = [1, 2] ! example matrix element values.")
48 call disp%show(
"mat = getMatInit(int(getUnifRand(2, 4, 2), IK), uppLowDia, vupp = getChoice(choice), vlow = getChoice(choice), vdia = getUnifRand(choice(1), choice(2)))")
52 call disp%show(
"isMatClass(mat, class = symmetric)")
54 call disp%show(
"isMatClass(mat, class = hermitian)")
60 logical,
allocatable :: choice(:), mat(:,:)
63 call disp%show(
"choice = [.false., .true.] ! example matrix element values.")
64 choice
= [
.false.,
.true.]
65 call disp%show(
"mat = getMatInit(int(getUnifRand(2, 4, 2), IK), uppLowDia, vupp = getChoice(choice), vlow = getChoice(choice), vdia = getUnifRand(choice(1), choice(2)))")
69 call disp%show(
"isMatClass(mat, class = symmetric)")
71 call disp%show(
"isMatClass(mat, class = hermitian)")
77 complex,
allocatable :: choice(:), mat(:,:)
80 call disp%show(
"choice = [(1., -1.), (1., 0.), (1., 1.)] ! example matrix element values.")
81 choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
82 call disp%show(
"mat = getMatInit(int(spread(getUnifRand(2, 4), 1, 2), IK), uppLowDia, vupp = getChoice(choice), vlow = getChoice(choice), vdia = getChoice(choice))")
86 call disp%show(
"isMatClass(mat, class = symmetric)")
88 call disp%show(
"isMatClass(mat, class = hermitian)")
94 real,
allocatable :: choice(:), mat(:,:)
97 call disp%show(
"choice = [1., 2., 3.] ! example matrix element values.")
99 call disp%show(
"mat = getMatInit(int(spread(getUnifRand(2, 4), 1, 2), IK), uppLowDia, vupp = getUnifRand(choice(1), choice(2)), vlow = getUnifRand(choice(1), choice(2)), vdia = getUnifRand(choice(1), choice(2)))")
100 mat
= getMatInit(
int(
spread(
getUnifRand(
2,
4),
1,
2),
IK), uppLowDia, vupp
= getUnifRand(choice(
1), choice(
2)), vlow
= getUnifRand(choice(
1), choice(
2)), vdia
= getUnifRand(choice(
1), choice(
2)))
103 call disp%show(
"isMatClass(mat, class = symmetric)")
105 call disp%show(
"isMatClass(mat, class = hermitian)")
111 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
112 call disp%show(
"! Check for positive-definite matrix.")
113 call disp%show(
"!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
117 complex,
allocatable :: choice(:), mat(:,:)
120 call disp%show(
"choice = [(.5, -.5), (1., 0.), (.5, .5)] ! example matrix element values.")
121 choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
122 call disp%show(
"mat = getMatInit(int(spread(getUnifRand(2, 4), 1, 2), IK), uppLowDia, vupp = getChoice(choice), vlow = getChoice(choice), vdia = getChoice(choice))")
126 call disp%show(
"isMatClass(mat, class = hermitian)")
128 call disp%show(
"isMatClass(mat, class = posdefmat)")
135 real(TKG),
allocatable :: choice(:), mat(:,:)
138 call disp%show(
"mat = getCovRand(mold = 5._TKG, ndim = int(getUnifRand(2, 8), IK))")
142 call disp%show(
"isMatClass(mat, class = symmetric)")
144 call disp%show(
"isMatClass(mat, class = hermitian)")
146 call disp%show(
"isMatClass(mat, class = posdefmat)")
148 call disp%show(
.not."if ( isMatClass(mat, class = posdefmat)) error stop 'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'")
149 if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
Select a single (or multiple) element(s) from the input array of intrinsic type of arbitrary kind ran...
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...
Verify the input assertion holds and if it does not, print the (optional) input message on stdout and...
Generate and return an object of type stop_type with the user-specified input attributes.
This is a generic method of the derived type display_type with pass attribute.
Generate and return a matrix of shape (shape(1), shape(2)) with the upper/lower triangle and the diag...
Generate and return the conversion of the input value to an output Fortran string,...
This module contains procedures and generic interfaces for selecting uniformly-distributed or arbitra...
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 reporting and handling errors.
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 RK
The default real kind in the ParaMonte library: real64 in Fortran, c_double in C-Fortran Interoperati...
integer, parameter IK
The default integer kind in the ParaMonte library: int32 in Fortran, c_int32_t in C-Fortran Interoper...
integer, parameter RKD
The double precision real kind in Fortran mode. On most platforms, this is an 64-bit real kind.
integer, parameter SK
The default character kind in the ParaMonte library: kind("a") in Fortran, c_char in C-Fortran Intero...
type(symmetric_type), parameter symmetric
This is a scalar parameter object of type symmetric_type that is exclusively used to signify the Symm...
type(posdefmat_type), parameter posdefmat
This is a scalar parameter object of type hermitian_type that is exclusively used to signify the Herm...
type(hermitian_type), parameter hermitian
This is a scalar parameter object of type hermitian_type that is exclusively used to signify the Herm...
This module contains procedures and generic interfaces relevant to generating and initializing matric...
This module contains the generic procedures for converting values of different types and kinds to For...
Generate and return an object of type display_type.
Example Unix compile command via Intel ifort
compiler ⛓
3ifort -fpp -standard-semantics -O3 -Wl,-rpath,../../../lib -I../../../inc main.F90 ../../../lib/libparamonte* -o main.exe
Example Windows Batch compile command via Intel ifort
compiler ⛓
2set PATH=..\..\..\lib;%PATH%
3ifort /fpp /standard-semantics /O3 /I:..\..\..\include main.F90 ..\..\..\lib\libparamonte*.lib /exe:main.exe
Example Unix / MinGW compile command via GNU gfortran
compiler ⛓
3gfortran -cpp -ffree-line-length-none -O3 -Wl,-rpath,../../../lib -I../../../inc main.F90 ../../../lib/libparamonte* -o main.exe
Example output ⛓
109"AA",
"AA",
"AA",
"AA"
110"AA",
"AA",
"AA",
"AA"
111"AA",
"AA",
"AA",
"AA"
229choice
= [
.false.,
.true.]
239choice
= [
.false.,
.true.]
251choice
= [
.false.,
.true.]
261choice
= [
.false.,
.true.]
271choice
= [
.false.,
.true.]
282choice
= [
.false.,
.true.]
294choice
= [
.false.,
.true.]
305choice
= [
.false.,
.true.]
317choice
= [
.false.,
.true.]
329choice
= [
.false.,
.true.]
339choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
342(
+1.00000000,
+1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
343(
+1.00000000,
-1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
344(
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
-1.00000000)
345(
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
+1.00000000)
351choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
354(
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000)
355(
+1.00000000,
+0.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000)
356(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000)
357(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+1.00000000)
363choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
366(
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
367(
+1.00000000,
+1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
368(
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
-1.00000000)
374choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
377(
+1.00000000,
-1.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000)
378(
+1.00000000,
+0.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000)
379(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
+0.00000000)
380(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
-1.00000000)
386choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
389(
+1.00000000,
+0.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000)
390(
+1.00000000,
+1.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+1.00000000)
391(
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+0.00000000)
397choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
400(
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000)
401(
+1.00000000,
-1.00000000), (
+1.00000000,
+1.00000000)
407choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
410(
+1.00000000,
+1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
411(
+1.00000000,
-1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
412(
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
-1.00000000)
413(
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
+1.00000000)
419choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
422(
+1.00000000,
-1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000)
423(
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000)
424(
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
+1.00000000)
425(
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
431choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
434(
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000)
435(
+1.00000000,
+0.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000)
436(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000)
437(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+1.00000000)
443choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
446(
+1.00000000,
+0.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
447(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
448(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
-1.00000000)
449(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000)
456mat
= getMatInit(
int(
spread(
getUnifRand(
2,
4),
1,
2),
IK), uppLowDia, vupp
= getUnifRand(choice(
1), choice(
2)), vlow
= getUnifRand(choice(
1), choice(
2)), vdia
= getUnifRand(choice(
1), choice(
2)))
458+1.55586100,
+1.40965474,
+1.40965474
459+1.27280653,
+1.55586100,
+1.40965474
460+1.27280653,
+1.27280653,
+1.55586100
467mat
= getMatInit(
int(
spread(
getUnifRand(
2,
4),
1,
2),
IK), uppLowDia, vupp
= getUnifRand(choice(
1), choice(
2)), vlow
= getUnifRand(choice(
1), choice(
2)), vdia
= getUnifRand(choice(
1), choice(
2)))
469+1.93497837,
+1.68250120,
+1.68250120
470+1.96232677,
+1.93497837,
+1.68250120
471+1.96232677,
+1.96232677,
+1.93497837
478mat
= getMatInit(
int(
spread(
getUnifRand(
2,
4),
1,
2),
IK), uppLowDia, vupp
= getUnifRand(choice(
1), choice(
2)), vlow
= getUnifRand(choice(
1), choice(
2)), vdia
= getUnifRand(choice(
1), choice(
2)))
480+1.87384677,
+1.67886353,
+1.67886353,
+1.67886353
481+1.57175064,
+1.87384677,
+1.67886353,
+1.67886353
482+1.57175064,
+1.57175064,
+1.87384677,
+1.67886353
483+1.57175064,
+1.57175064,
+1.57175064,
+1.87384677
490mat
= getMatInit(
int(
spread(
getUnifRand(
2,
4),
1,
2),
IK), uppLowDia, vupp
= getUnifRand(choice(
1), choice(
2)), vlow
= getUnifRand(choice(
1), choice(
2)), vdia
= getUnifRand(choice(
1), choice(
2)))
492+1.98632193,
+1.43915772
493+1.00081563,
+1.98632193
500mat
= getMatInit(
int(
spread(
getUnifRand(
2,
4),
1,
2),
IK), uppLowDia, vupp
= getUnifRand(choice(
1), choice(
2)), vlow
= getUnifRand(choice(
1), choice(
2)), vdia
= getUnifRand(choice(
1), choice(
2)))
502+1.47831726,
+1.99886155,
+1.99886155
503+1.55248129,
+1.47831726,
+1.99886155
504+1.55248129,
+1.55248129,
+1.47831726
511mat
= getMatInit(
int(
spread(
getUnifRand(
2,
4),
1,
2),
IK), uppLowDia, vupp
= getUnifRand(choice(
1), choice(
2)), vlow
= getUnifRand(choice(
1), choice(
2)), vdia
= getUnifRand(choice(
1), choice(
2)))
513+1.43244636,
+1.61565709,
+1.61565709
514+1.37112164,
+1.43244636,
+1.61565709
515+1.37112164,
+1.37112164,
+1.43244636
522mat
= getMatInit(
int(
spread(
getUnifRand(
2,
4),
1,
2),
IK), uppLowDia, vupp
= getUnifRand(choice(
1), choice(
2)), vlow
= getUnifRand(choice(
1), choice(
2)), vdia
= getUnifRand(choice(
1), choice(
2)))
524+1.30009329,
+1.31227648,
+1.31227648,
+1.31227648
525+1.64829826,
+1.30009329,
+1.31227648,
+1.31227648
526+1.64829826,
+1.64829826,
+1.30009329,
+1.31227648
527+1.64829826,
+1.64829826,
+1.64829826,
+1.30009329
534mat
= getMatInit(
int(
spread(
getUnifRand(
2,
4),
1,
2),
IK), uppLowDia, vupp
= getUnifRand(choice(
1), choice(
2)), vlow
= getUnifRand(choice(
1), choice(
2)), vdia
= getUnifRand(choice(
1), choice(
2)))
536+1.87678504,
+1.63589787,
+1.63589787,
+1.63589787
537+1.08569002,
+1.87678504,
+1.63589787,
+1.63589787
538+1.08569002,
+1.08569002,
+1.87678504,
+1.63589787
539+1.08569002,
+1.08569002,
+1.08569002,
+1.87678504
546mat
= getMatInit(
int(
spread(
getUnifRand(
2,
4),
1,
2),
IK), uppLowDia, vupp
= getUnifRand(choice(
1), choice(
2)), vlow
= getUnifRand(choice(
1), choice(
2)), vdia
= getUnifRand(choice(
1), choice(
2)))
548+1.97254825,
+1.88383210
549+1.85990310,
+1.97254825
556mat
= getMatInit(
int(
spread(
getUnifRand(
2,
4),
1,
2),
IK), uppLowDia, vupp
= getUnifRand(choice(
1), choice(
2)), vlow
= getUnifRand(choice(
1), choice(
2)), vdia
= getUnifRand(choice(
1), choice(
2)))
558+1.12669778,
+1.07764876
559+1.18785596,
+1.12669778
570choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
573(
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000)
574(
+1.00000000,
+0.00000000), (
+0.500000000,
+0.500000000)
580choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
583(
+0.500000000,
-0.500000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000)
584(
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000)
585(
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
+0.500000000)
586(
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
592choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
595(
+1.00000000,
+0.00000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000)
596(
+0.500000000,
+0.500000000), (
+1.00000000,
+0.00000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000)
597(
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000), (
+1.00000000,
+0.00000000), (
+0.500000000,
+0.500000000)
598(
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000), (
+1.00000000,
+0.00000000)
604choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
607(
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000)
608(
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000)
609(
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000)
615choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
618(
+0.500000000,
+0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
619(
+1.00000000,
+0.00000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
-0.500000000)
620(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+0.500000000,
+0.500000000)
626choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
629(
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
630(
+0.500000000,
+0.500000000), (
+0.500000000,
-0.500000000)
636choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
639(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000)
640(
+0.500000000,
+0.500000000), (
+1.00000000,
+0.00000000)
646choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
649(
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000)
650(
+0.500000000,
-0.500000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000)
651(
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
+0.500000000)
657choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
660(
+1.00000000,
+0.00000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000)
661(
+0.500000000,
+0.500000000), (
+1.00000000,
+0.00000000), (
+0.500000000,
+0.500000000)
662(
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000), (
+1.00000000,
+0.00000000)
668choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
671(
+1.00000000,
+0.00000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
672(
+0.500000000,
-0.500000000), (
+1.00000000,
+0.00000000), (
+0.500000000,
-0.500000000)
673(
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+1.00000000,
+0.00000000)
681+1.0000000000000000,
-0.10231955089680571,
-0.55697106295379450
682-0.10231955089680571,
+1.0000000000000000,
+0.59608670831049282
683-0.55697106295379450,
+0.59608670831049282,
+1.0000000000000000
690if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
694+1.0000000000000000,
+0.99549186867116657
695+0.99549186867116657,
+1.0000000000000000
702if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
706+1.0000000000000000,
+0.76522423599646938,
-0.80964489336474288,
+0.78073688412366793,
+0.44944393150656609
707+0.76522423599646938,
+1.0000000000000000,
-0.39166572560426810,
+0.26595276776752180,
+0.75953471880365053E-1
708-0.80964489336474288,
-0.39166572560426810,
+1.0000000000000000,
-0.95815770585256022,
-0.78145881010020235
709+0.78073688412366793,
+0.26595276776752180,
-0.95815770585256022,
+1.0000000000000000,
+0.78728697909557455
710+0.44944393150656609,
+0.75953471880365053E-1,
-0.78145881010020235,
+0.78728697909557455,
+1.0000000000000000
717if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
721+1.0000000000000000,
+0.58076408974108806,
+0.33706983226167547,
-0.28191234027678386,
+0.36049291894889957
722+0.58076408974108806,
+1.0000000000000000,
+0.60694607997703465,
-0.18744005803061936,
+0.83389170699515103
723+0.33706983226167547,
+0.60694607997703465,
+1.0000000000000000,
+0.29352675526706240,
+0.60891710604030358
724-0.28191234027678386,
-0.18744005803061936,
+0.29352675526706240,
+1.0000000000000000,
-0.27819082026885433
725+0.36049291894889957,
+0.83389170699515103,
+0.60891710604030358,
-0.27819082026885433,
+1.0000000000000000
732if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
736+1.0000000000000000,
+0.38484638191804216,
+0.23351996059452806
737+0.38484638191804216,
+1.0000000000000000,
-0.74573483340151525
738+0.23351996059452806,
-0.74573483340151525,
+1.0000000000000000
745if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
749+1.0000000000000000,
-0.98731091981416486,
-0.11763169511002675,
-0.59446731392167373,
+0.17335488355395998,
-0.17480010866021328
750-0.98731091981416486,
+1.0000000000000000,
-0.23935312982060475E-2,
+0.48060146914181712,
-0.13054597632791995,
+0.12094203019730237
751-0.11763169511002675,
-0.23935312982060475E-2,
+1.0000000000000000,
+0.27969621760648389,
-0.59886417996962571,
-0.43282465544208781E-1
752-0.59446731392167373,
+0.48060146914181712,
+0.27969621760648389,
+1.0000000000000000,
-0.44133891954383608E-1,
+0.50310872189727296
753+0.17335488355395998,
-0.13054597632791995,
-0.59886417996962571,
-0.44133891954383608E-1,
+1.0000000000000000,
+0.58172462244470602
754-0.17480010866021328,
+0.12094203019730237,
-0.43282465544208781E-1,
+0.50310872189727296,
+0.58172462244470602,
+1.0000000000000000
761if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
765+1.0000000000000000,
-0.80255539847478208,
+0.21885443710900371
766-0.80255539847478208,
+1.0000000000000000,
+0.19389909327050733
767+0.21885443710900371,
+0.19389909327050733,
+1.0000000000000000
774if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
778+1.0000000000000000,
+0.22568709865775730,
+0.68116511532450152
779+0.22568709865775730,
+1.0000000000000000,
-0.49968093197841956E-1
780+0.68116511532450152,
-0.49968093197841956E-1,
+1.0000000000000000
787if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
791+1.0000000000000000,
-0.85348502405010196,
+0.34458183728629677,
+0.39440222842390854,
-0.35088135003456943E-1
792-0.85348502405010196,
+1.0000000000000000,
-0.28635151718198654,
-0.69587412102628621,
-0.16189136847493851
793+0.34458183728629677,
-0.28635151718198654,
+1.0000000000000000,
+0.62841208186113073,
+0.13554213247346689
794+0.39440222842390854,
-0.69587412102628621,
+0.62841208186113073,
+1.0000000000000000,
+0.42472252388659498
795-0.35088135003456943E-1,
-0.16189136847493851,
+0.13554213247346689,
+0.42472252388659498,
+1.0000000000000000
802if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
806+1.0000000000000000,
-0.73571228519552945,
+0.47872011108940193,
-0.57937138803415489
807-0.73571228519552945,
+1.0000000000000000,
+0.22416055162995330,
+0.85630257716602165
808+0.47872011108940193,
+0.22416055162995330,
+1.0000000000000000,
+0.15612271635937880
809-0.57937138803415489,
+0.85630257716602165,
+0.15612271635937880,
+1.0000000000000000
816if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
- Test:
- test_pm_matrixClass
- Todo:
- High Priority: This generic interface must be extended to all matrix classes documented in this module.
- Todo:
- High Priority: The implementation for rfpack can be improved once the corresponding improvements to the auxiliary routines used are implemented.
For example, the current implementation for positive-definiteness check makes a copy of the input array which can be avoided if the corresponding setMatChol interface is implemented.
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
-
If you use any parts or concepts from this library to any extent, please acknowledge the usage by citing the relevant publications of the ParaMonte library.
-
If you regenerate any parts/ideas from this library in a programming environment other than those currently supported by this ParaMonte library (i.e., other than C, C++, Fortran, MATLAB, Python, R), please also ask the end users to cite this original ParaMonte library.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.
- Copyright
- Computational Data Science Lab
- Author:
- Amir Shahmoradi, Monday March 6, 2017, 3:22 pm, Institute for Computational Engineering and Sciences (ICES), The University of Texas at Austin.
Definition at line 2115 of file pm_matrixClass.F90.