Array reduction and transformation routines
Return a 2-vector comprising the minimum and maximum values of an array
Return [hi,low] for an array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:) | :: | x | Array to find extrema in |
Return [hi,low] for an array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:,:) | :: | x | Array to find extrema in |
Return [hi,low] for an array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:,:,:) | :: | x | Array to find extrema in |
Return a the maximum-minumum values of an array
x values of data Return (hi-low) for an array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:) | :: | x | Array of which to find the range |
Range of the array
Return (hi-low) for an array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:,:) | :: | x | Array of which to find the range |
Range of the array
Return (hi-low) for an array
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:,:,:) | :: | x | Array of which to find the range |
Range of the array
Reduce an array to one dimension
Convert a 2D array to 1D
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:,:) | :: | A | Array to convert |
1D version of the data
Convert a 3D array to 1D
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:,:,:) | :: | A | Array to convert |
1D version of the data
Convert a 2D array to 1D
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=wp), | intent(in), | dimension(:,:) | :: | A | Array to convert |
1D version of the data
Convert a 3D array to 1D
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=wp), | intent(in), | dimension(:,:,:) | :: | A | Array to convert |
1D version of the data
Solve a tridiagonal linear algebra problem \( [A]\{x\}=\{b\} \)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:,:) | :: | A | Coefficient matrix with the diagonals in columns \( [A] \) |
|
real(kind=wp), | intent(in), | dimension(:) | :: | b | Right-hand-side of the system \( \{b\} \) |
Problem solution \( \{x\} \)
Solve a tridiagonal linear algebra problem \( [A]\{x\}=\{b\} \)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:,:) | :: | A | Coefficient matrix with the diagonals in columns \( [A] \) |
|
real(kind=wp), | intent(in), | dimension(:,:) | :: | b | Right-hand-side of the system \( \{b\} \) |
Problem solution \( \{x\} \)
Solve a tridiagonal linear algebra problem \( [A]\{x\}=\{b\} \)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=wp), | intent(in), | dimension(:,:) | :: | A | Coefficient matrix with the diagonals in columns \( [A] \) |
|
complex(kind=wp), | intent(in), | dimension(:) | :: | b | Right-hand-side of the system \( \{b\} \) |
Problem solution \( \{x\} \)
Solve a tridiagonal linear algebra problem \( [A]\{x\}=\{b\} \)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=wp), | intent(in), | dimension(:,:) | :: | A | Coefficient matrix with the diagonals in columns \( [A] \) |
|
complex(kind=wp), | intent(in), | dimension(:,:) | :: | b | Right-hand-side of the system \( \{b\} \) |
Problem solution \( \{x\} \)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:,:) | :: | A | ||
real(kind=wp), | intent(in), | dimension(:) | :: | b |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:,:) | :: | A | ||
real(kind=wp), | intent(in), | dimension(:,:) | :: | b |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=wp), | intent(in), | dimension(:,:) | :: | A | ||
complex(kind=wp), | intent(in), | dimension(:) | :: | b |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=wp), | intent(in), | dimension(:,:) | :: | A | ||
complex(kind=wp), | intent(in), | dimension(:,:) | :: | b |
Remove duplicates from a list of positive integers
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | dimension(:) | :: | l | List for de-duplication |
List without duplicates
Return an array of evenly-spaced values
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | l | Low-bound for values |
||
real(kind=wp), | intent(in) | :: | h | High-bound for values |
||
integer, | intent(in), | optional | :: | N | Number of values (default 20) |
Construct a grid from x and y spacing
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:) | :: | x | Grid values in x and y |
|
real(kind=wp), | intent(in), | dimension(:) | :: | y | Grid values in x and y |
Array x expanded into y
Construct a grid from x and y spacing
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in), | dimension(:) | :: | x | Grid values in x and y |
|
real(kind=wp), | intent(in), | dimension(:) | :: | y | Grid values in x and y |
Array x expanded into y
Linear interpolation of y(x) at x=r
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | r | Position of desired value |
||
real(kind=wp), | intent(in), | dimension(:) | :: | x | x values of data |
|
real(kind=wp), | intent(in), | dimension(size(x)) | :: | y | y values of data |
y(x=r) via linear interpolation
Find the locations in t0 that bracket t
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | t | Position of desired value |
||
real(kind=wp), | intent(in), | dimension(:) | :: | t0 | t values of data |
Index of lower t0 value which brakets t