Utilities/helper module.
Return quiet NaN.
Converts char to real.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | c |
Convert integer to char.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=i4), | intent(in) | :: | i |
Returns true if is NaN.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | x |
Convert real to char.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | r |
Solve a * x = b for x using Cholesky factor returned by stdlib's chol(). a : (n,n) symmetric positive-definite b : (n)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | a(n,n) |
input square matrix, symmetric positive-definite |
||
| real(kind=wp), | intent(in) | :: | b(n) |
input right-hand side vector (n) |
||
| integer(kind=i4), | intent(in) | :: | n |
length of vectors |
output solution vector (n)
Ranks all samples such that the smallest value obtains rank 1 and the largest rank n. Handles tied ranks and assigns average rank to tied elements within one group of tied elements.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | x(:) |
x array |
||
| real(kind=wp), | intent(out), | allocatable | :: | ranks(:) |
ranks of x |
Sort real array in ascending (mode=1) or descending (mode=2) order. Preserves the input array. Outputs sorted array and index mapping.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | a_in(n) |
input array (unchanged) |
||
| integer(kind=i4), | intent(in) | :: | n |
number of elements |
||
| integer(kind=i4), | intent(in) | :: | mode |
1=ascending, 2=descending |
||
| integer(kind=i4), | intent(in) | :: | idx_in(n) |
initial index mapping |
||
| real(kind=wp), | intent(out) | :: | a_out(n) |
sorted output array |
||
| integer(kind=i4), | intent(out) | :: | idx_out(n) |
updated index mapping |