Useful functions for manipulating arrays.
|
pure logical function | is_in_array (val, array) |
| Return true if the value is in the array.
|
|
pure double precision function, dimension(size(array)) | get_reverse_array (array) |
| Useful functions.
|
|
pure double precision function, dimension(3) | get_reverse_array_n3 (array) |
| Useful functions.
|
|
pure double precision function, dimension(5) | get_reverse_array_n5 (array) |
| Useful functions.
|
|
◆ is_in_array()
pure logical function mod_arrays::is_in_array |
( |
integer, intent(in) | val, |
|
|
integer, dimension(:), intent(in) | array ) |
- Parameters
-
[in] | val | the value to search for |
[in] | array | the array to search in |
- Returns
- res: boolean
- Todo
- replace this routine by the intrinsic Fortran procedure 'findloc'