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 ⛓
227choice
= [
.false.,
.true.]
239choice
= [
.false.,
.true.]
251choice
= [
.false.,
.true.]
261choice
= [
.false.,
.true.]
272choice
= [
.false.,
.true.]
283choice
= [
.false.,
.true.]
293choice
= [
.false.,
.true.]
303choice
= [
.false.,
.true.]
315choice
= [
.false.,
.true.]
326choice
= [
.false.,
.true.]
337choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
340(
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000)
341(
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000)
347choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
350(
+1.00000000,
+1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
351(
+1.00000000,
+0.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
352(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
-1.00000000)
353(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+1.00000000)
359choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
362(
+1.00000000,
+0.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
363(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
-1.00000000)
364(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000)
370choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
373(
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000)
374(
+1.00000000,
-1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000)
375(
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
+1.00000000)
381choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
384(
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
385(
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
386(
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
387(
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
393choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
396(
+1.00000000,
+1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
397(
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
398(
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
-1.00000000)
399(
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000)
405choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
408(
+1.00000000,
+0.00000000), (
+1.00000000,
-1.00000000), (
+1.00000000,
-1.00000000)
409(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
-1.00000000)
410(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000)
416choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
419(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000)
420(
+1.00000000,
+1.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000)
421(
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000), (
+1.00000000,
+0.00000000)
427choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
430(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000)
431(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000)
432(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000)
438choice
= [(
1.,
-1.), (
1.,
0.), (
1.,
1.)]
441(
+1.00000000,
+1.00000000), (
+1.00000000,
-1.00000000)
442(
+1.00000000,
+1.00000000), (
+1.00000000,
+1.00000000)
449mat
= 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)))
451+1.38591480,
+1.00488329
452+1.07084823,
+1.38591480
459mat
= 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)))
461+1.03038633,
+1.72255921
462+1.24019408,
+1.03038633
469mat
= 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)))
471+1.28212190,
+1.16034222,
+1.16034222,
+1.16034222
472+1.53475690,
+1.28212190,
+1.16034222,
+1.16034222
473+1.53475690,
+1.53475690,
+1.28212190,
+1.16034222
474+1.53475690,
+1.53475690,
+1.53475690,
+1.28212190
481mat
= 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)))
483+1.08622289,
+1.99702072
484+1.53482282,
+1.08622289
491mat
= 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)))
493+1.68734360,
+1.65898383,
+1.65898383
494+1.68906057,
+1.68734360,
+1.65898383
495+1.68906057,
+1.68906057,
+1.68734360
502mat
= 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)))
504+1.03430676,
+1.75754380,
+1.75754380,
+1.75754380
505+1.43025708,
+1.03430676,
+1.75754380,
+1.75754380
506+1.43025708,
+1.43025708,
+1.03430676,
+1.75754380
507+1.43025708,
+1.43025708,
+1.43025708,
+1.03430676
514mat
= 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)))
516+1.63208580,
+1.29120433
517+1.76638889,
+1.63208580
524mat
= 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)))
526+1.92633224,
+1.58054388,
+1.58054388
527+1.26536107,
+1.92633224,
+1.58054388
528+1.26536107,
+1.26536107,
+1.92633224
535mat
= 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)))
537+1.57529998,
+1.19651246,
+1.19651246,
+1.19651246
538+1.70954275,
+1.57529998,
+1.19651246,
+1.19651246
539+1.70954275,
+1.70954275,
+1.57529998,
+1.19651246
540+1.70954275,
+1.70954275,
+1.70954275,
+1.57529998
547mat
= 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)))
549+1.68054473,
+1.04381955,
+1.04381955
550+1.04233968,
+1.68054473,
+1.04381955
551+1.04233968,
+1.04233968,
+1.68054473
562choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
565(
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
566(
+1.00000000,
+0.00000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
567(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
568(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+0.500000000,
-0.500000000)
574choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
577(
+0.500000000,
+0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
578(
+1.00000000,
+0.00000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
-0.500000000)
579(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000), (
+0.500000000,
+0.500000000)
585choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
588(
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
589(
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
590(
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
596choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
599(
+0.500000000,
+0.500000000), (
+0.500000000,
-0.500000000)
600(
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000)
606choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
609(
+0.500000000,
+0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
610(
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
-0.500000000)
611(
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000)
617choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
620(
+1.00000000,
+0.00000000), (
+0.500000000,
+0.500000000)
621(
+1.00000000,
+0.00000000), (
+1.00000000,
+0.00000000)
627choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
630(
+1.00000000,
+0.00000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
631(
+0.500000000,
-0.500000000), (
+1.00000000,
+0.00000000), (
+0.500000000,
-0.500000000)
632(
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+1.00000000,
+0.00000000)
638choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
641(
+0.500000000,
+0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
642(
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
-0.500000000)
643(
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000), (
+0.500000000,
+0.500000000)
649choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
652(
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
653(
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
654(
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
655(
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000), (
+0.500000000,
-0.500000000)
661choice
= [(.
5,
-.
5), (
1.,
0.), (.
5, .
5)]
664(
+1.00000000,
+0.00000000), (
+0.500000000,
-0.500000000)
665(
+0.500000000,
+0.500000000), (
+1.00000000,
+0.00000000)
673+1.0000000000000000,
+0.26111173080490091,
-0.38890865145155679,
+0.43071800422681372,
-0.55142862425280392,
-0.23227322958822924,
+0.34791131739651038,
+0.20829952297259594
674+0.26111173080490091,
+1.0000000000000000,
-0.69025864176571405,
-0.31884974870300348,
-0.40908537387411459,
-0.55906680853977242,
+0.39135558772782064,
-0.28209034307025949
675-0.38890865145155679,
-0.69025864176571405,
+1.0000000000000000,
-0.27120922698876598,
+0.47547452257340933,
+0.84809005246237401,
-0.42640789471423413,
+0.18780131338326622
676+0.43071800422681372,
-0.31884974870300348,
-0.27120922698876598,
+1.0000000000000000,
-0.32766540560484403,
-0.37772092915178024,
-0.71626071765188953E-1,
+0.37338434207438381
677-0.55142862425280392,
-0.40908537387411459,
+0.47547452257340933,
-0.32766540560484403,
+1.0000000000000000,
+0.29980937326461576,
-0.56456162897761475,
-0.39446463228874817
678-0.23227322958822924,
-0.55906680853977242,
+0.84809005246237401,
-0.37772092915178024,
+0.29980937326461576,
+1.0000000000000000,
+0.42711623597670972E-1,
+0.38858614558564419
679+0.34791131739651038,
+0.39135558772782064,
-0.42640789471423413,
-0.71626071765188953E-1,
-0.56456162897761475,
+0.42711623597670972E-1,
+1.0000000000000000,
+0.21150079047399170
680+0.20829952297259594,
-0.28209034307025949,
+0.18780131338326622,
+0.37338434207438381,
-0.39446463228874817,
+0.38858614558564419,
+0.21150079047399170,
+1.0000000000000000
687if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
691+1.0000000000000000,
-0.84250633783710516,
-0.53159676607824613,
+0.67163937492950965
692-0.84250633783710516,
+1.0000000000000000,
+0.65213862272894108,
-0.47787666291088021
693-0.53159676607824613,
+0.65213862272894108,
+1.0000000000000000,
+0.88344676929912991E-1
694+0.67163937492950965,
-0.47787666291088021,
+0.88344676929912991E-1,
+1.0000000000000000
701if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
705+1.0000000000000000,
-0.86953105102349826,
+0.98113310372059259,
+0.41728630675548611
706-0.86953105102349826,
+1.0000000000000000,
-0.94830855325742780,
-0.78931228638514317
707+0.98113310372059259,
-0.94830855325742780,
+1.0000000000000000,
+0.57456768579538686
708+0.41728630675548611,
-0.78931228638514317,
+0.57456768579538686,
+1.0000000000000000
715if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
719+1.0000000000000000,
-0.12887702713990709,
+0.86170105422631360
720-0.12887702713990709,
+1.0000000000000000,
-0.53162989608420985
721+0.86170105422631360,
-0.53162989608420985,
+1.0000000000000000
728if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
732+1.0000000000000000,
-0.68621679568493954
733-0.68621679568493954,
+1.0000000000000000
740if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
744+1.0000000000000000,
+0.59140585919207656,
-0.16435597660574991,
+0.50762523208650667,
-0.24889445653428799,
-0.82113419695611964E-1,
+0.39572086143279089,
+0.23060652679645657
745+0.59140585919207656,
+1.0000000000000000,
-0.64378855775235166,
-0.19978043781972876,
-0.71610989061078911,
+0.37101441383338638E-2,
+0.60696989385222466,
+0.39595311263858368
746-0.16435597660574991,
-0.64378855775235166,
+1.0000000000000000,
+0.37398972130386865,
+0.69567371052386917,
-0.39101160509188604,
-0.55228214672130405E-1,
-0.57180693921305825
747+0.50762523208650667,
-0.19978043781972876,
+0.37398972130386865,
+1.0000000000000000,
+0.20363387207454620E-1,
+0.39876726182449529E-2,
+0.19841829383178766,
-0.21688534367568885
748-0.24889445653428799,
-0.71610989061078911,
+0.69567371052386917,
+0.20363387207454620E-1,
+1.0000000000000000,
-0.42451836400383658,
-0.40197939952150807,
-0.48496000484009699
749-0.82113419695611964E-1,
+0.37101441383338638E-2,
-0.39101160509188604,
+0.39876726182449529E-2,
-0.42451836400383658,
+1.0000000000000000,
-0.43657262598686170,
+0.74620796347637675
750+0.39572086143279089,
+0.60696989385222466,
-0.55228214672130405E-1,
+0.19841829383178766,
-0.40197939952150807,
-0.43657262598686170,
+1.0000000000000000,
-0.35755488466598045
751+0.23060652679645657,
+0.39595311263858368,
-0.57180693921305825,
-0.21688534367568885,
-0.48496000484009699,
+0.74620796347637675,
-0.35755488466598045,
+1.0000000000000000
758if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
762+1.0000000000000000,
-0.90100436004741069,
-0.17250297693569897E-1
763-0.90100436004741069,
+1.0000000000000000,
+0.44714478076728370
764-0.17250297693569897E-1,
+0.44714478076728370,
+1.0000000000000000
771if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
775+1.0000000000000000,
+0.76185621295191097,
+0.50440601965961773,
+0.85686496633639631,
+0.65311875173347322,
-0.24920137862216968
776+0.76185621295191097,
+1.0000000000000000,
+0.10153042046446514E-1,
+0.82718558964835032,
+0.76276012197612020,
-0.22320003960060569
777+0.50440601965961773,
+0.10153042046446514E-1,
+1.0000000000000000,
+0.25101238079459459,
+0.37673421760240894,
+0.27521379058266282
778+0.85686496633639631,
+0.82718558964835032,
+0.25101238079459459,
+1.0000000000000000,
+0.54434116038392544,
-0.14994122992071385
779+0.65311875173347322,
+0.76276012197612020,
+0.37673421760240894,
+0.54434116038392544,
+1.0000000000000000,
+0.14707939833253236
780-0.24920137862216968,
-0.22320003960060569,
+0.27521379058266282,
-0.14994122992071385,
+0.14707939833253236,
+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.99561795180731405,
+0.77441364853248629,
-0.56220011456574140E-1,
-0.58814903500539850,
-0.60157978056402261,
-0.60695488547899201
792+0.99561795180731405,
+1.0000000000000000,
+0.71907490637649496,
-0.33877477401188807E-1,
-0.59910147482738263,
-0.63130740613668657,
-0.56577907033804009
793+0.77441364853248629,
+0.71907490637649496,
+1.0000000000000000,
-0.37637940992950586,
-0.40803972862587146,
-0.32093235411858434,
-0.65917174206962437
794-0.56220011456574140E-1,
-0.33877477401188807E-1,
-0.37637940992950586,
+1.0000000000000000,
-0.13646339902652338,
+0.17989714437971027,
+0.32718150080294672
795-0.58814903500539850,
-0.59910147482738263,
-0.40803972862587146,
-0.13646339902652338,
+1.0000000000000000,
+0.78236652098737891,
-0.13588173829175068
796-0.60157978056402261,
-0.63130740613668657,
-0.32093235411858434,
+0.17989714437971027,
+0.78236652098737891,
+1.0000000000000000,
+0.15804882428758785
797-0.60695488547899201,
-0.56577907033804009,
-0.65917174206962437,
+0.32718150080294672,
-0.13588173829175068,
+0.15804882428758785,
+1.0000000000000000
804if (
.not. isMatClass(mat,
class = posdefmat)) error stop
'The output matrix from `getCovRand()` must be positive-definite. Please report this to developers.'
808+1.0000000000000000,
-0.82415568432988306,
-0.30197955233730961,
-0.61515482813300637
809-0.82415568432988306,
+1.0000000000000000,
-0.11761858976573392,
+0.24952658751498652
810-0.30197955233730961,
-0.11761858976573392,
+1.0000000000000000,
+0.14903407908731736
811-0.61515482813300637,
+0.24952658751498652,
+0.14903407908731736,
+1.0000000000000000
818if (
.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.