TUV-x
|
Functions for working with allocatable arrays. More...
Data Types | |
interface | find_string_in_array |
interface | find_string_in_split_array |
Functions/Subroutines | |
logical function | find_string_in_array_char (array, string, id, case_sensitive) |
Finds a string in a string array (case insensitive by default) More... | |
logical function | find_string_in_array_string (array, string, id, case_sensitive) |
Finds a string in an array ( case insensitive by default) More... | |
logical function | find_string_in_split_array_char (array, string, splitter, element_id, id, case_sensitive) |
Find a string in an array of strings after splitting the array elements. More... | |
logical function | find_string_in_split_array_string (array, string, splitter, element_id, id, case_sensitive) |
Find a string in an array of strings after splitting the array elements. More... | |
real(kind=musica_dk) function, dimension(:), allocatable, public | merge_series (a, b, with_bounds_from) |
Merge two sets of values into a single set without duplicates. More... | |
real(kind=musica_dk) function, dimension(:), allocatable, public | calculate_linear_array (minimum, maximum, number_of_elements) |
Allocates and calculates an array of linearly increasing value with specified minimum and maximum values and number of elements. More... | |
real(kind=musica_dk) function, dimension(:), allocatable, public | calculate_logarithmic_array (minimum, maximum, number_of_elements) |
Allocates and calculates an array of logarithmically increasing value with specified minimum and maximum values and number of elements. More... | |
Functions for working with allocatable arrays.
real(kind=musica_dk) function, dimension(:), allocatable, public musica_array::calculate_linear_array | ( | real(kind=musica_dk), intent(in) | minimum, |
real(kind=musica_dk), intent(in) | maximum, | ||
integer(kind=musica_ik), intent(in) | number_of_elements | ||
) |
Allocates and calculates an array of linearly increasing value with specified minimum and maximum values and number of elements.
[in] | minimum | Minimum array value |
[in] | maximum | Maximum array value |
[in] | number_of_elements | Number of array elements |
real(kind=musica_dk) function, dimension(:), allocatable, public musica_array::calculate_logarithmic_array | ( | real(kind=musica_dk), intent(in) | minimum, |
real(kind=musica_dk), intent(in) | maximum, | ||
integer(kind=musica_ik), intent(in) | number_of_elements | ||
) |
Allocates and calculates an array of logarithmically increasing value with specified minimum and maximum values and number of elements.
[in] | minimum | Minimum array value |
[in] | maximum | Maximum array value |
[in] | number_of_elements | Number of array elements |
|
private |
Finds a string in a string array (case insensitive by default)
[in] | array | Array to search |
[in] | string | String to search for |
[out] | id | Index of located string |
[in] | case_sensitive | Do a case sensitive search |
logical function musica_array::find_string_in_array_string | ( | type(string_t), dimension(:), intent(in) | array, |
type(string_t), intent(in) | string, | ||
integer(kind=musica_ik), intent(out) | id, | ||
logical, intent(in), optional | case_sensitive | ||
) |
Finds a string in an array ( case insensitive by default)
[in] | array | Array to search |
[in] | string | String to search for |
[out] | id | Index of located string |
[in] | case_sensitive | Do a case sensitive search |
logical function musica_array::find_string_in_split_array_char | ( | type(string_t), dimension(:), intent(in) | array, |
character(len=*), intent(in) | string, | ||
character(len=*), intent(in) | splitter, | ||
integer(kind=musica_ik), intent(in) | element_id, | ||
integer(kind=musica_ik), intent(out) | id, | ||
logical, intent(in), optional | case_sensitive | ||
) |
Find a string in an array of strings after splitting the array elements.
Case insensitive by default
[in] | array | Array to search |
[in] | string | String to search for |
[in] | splitter | Splitting characters |
[in] | element_id | Element to compare in split strings |
[out] | id | Index of located string |
[in] | case_sensitive | Do a case sensitive search |
logical function musica_array::find_string_in_split_array_string | ( | type(string_t), dimension(:), intent(in) | array, |
type(string_t), intent(in) | string, | ||
character(len=*), intent(in) | splitter, | ||
integer(kind=musica_ik), intent(in) | element_id, | ||
integer(kind=musica_ik), intent(out) | id, | ||
logical, intent(in), optional | case_sensitive | ||
) |
Find a string in an array of strings after splitting the array elements.
Case insensitive by default
[in] | array | Array to search |
[in] | string | String to search for |
[in] | splitter | Splitting characters |
[in] | element_id | Element to compare in split strings |
[out] | id | Index of located string |
[in] | case_sensitive | Do a case sensitive search |
real(kind=musica_dk) function, dimension(:), allocatable, public musica_array::merge_series | ( | real(kind=musica_dk), dimension(:), intent(in) | a, |
real(kind=musica_dk), dimension(:), intent(in) | b, | ||
real(kind=musica_dk), dimension(:), intent(in), optional | with_bounds_from | ||
) |
Merge two sets of values into a single set without duplicates.
Both sets must be arranged in increasing order
[in] | a | First series |
[in] | b | Second series |
[in] | with_bounds_from | Restricts series to bounds in this array |