Searches a list using the linear search method.
More...
|
subroutine | list_search_linear_intg_array (A, VALUE, POSITION, ERR, ERROR,) |
| Searches an integer array list A for VALUE using the linear search method. If the search is successful POSITION contains the index of the position of VALUE in the list otherwise POSITION is zero. More...
|
|
subroutine | list_search_linear_sp_array (A, VALUE, POSITION, ERR, ERROR,) |
| Searches a single precision real array list A for VALUE using the linear search method. If the search is successful POSITION contains the index of the position of VALUE in the list otherwise POSITION is zero. More...
|
|
subroutine | list_search_linear_dp_array (A, VALUE, POSITION, ERR, ERROR,) |
| Searches a double precision real array list A for VALUE using the linear search method. If the search is successful POSITION contains the index of the position of VALUE in the list otherwise POSITION is zero. More...
|
|
Searches a list using the linear search method.
Definition at line 245 of file lists.f90.
subroutine lists::list_searchlinear::list_search_linear_dp_array |
( |
real(dp), dimension(:), intent(in) |
A, |
|
|
real(dp), intent(in) |
VALUE, |
|
|
integer(intg), intent(out) |
POSITION, |
|
|
integer(intg), intent(out) |
ERR, |
|
|
type(varying_string), intent(out) |
ERROR |
|
) |
| |
|
private |
Searches a double precision real array list A for VALUE using the linear search method. If the search is successful POSITION contains the index of the position of VALUE in the list otherwise POSITION is zero.
- Parameters
-
[in] | a | The list to search |
[in] | value | The value to search for |
[out] | position | On exit, the position of value in the list. If value does not exist in the list the returned position is zero. |
[out] | err | The error code |
[out] | error | The error string |
Definition at line 3082 of file lists.f90.
subroutine lists::list_searchlinear::list_search_linear_intg_array |
( |
integer(intg), dimension(:), intent(in) |
A, |
|
|
integer(intg), intent(in) |
VALUE, |
|
|
integer(intg), intent(out) |
POSITION, |
|
|
integer(intg), intent(out) |
ERR, |
|
|
type(varying_string), intent(out) |
ERROR |
|
) |
| |
|
private |
Searches an integer array list A for VALUE using the linear search method. If the search is successful POSITION contains the index of the position of VALUE in the list otherwise POSITION is zero.
- Parameters
-
[in] | a | The list to search |
[in] | value | The value to search for |
[out] | position | On exit, the position of value in the list. If value does not exist in the list the returned position is zero. |
[out] | err | The error code |
[out] | error | The error string |
Definition at line 2962 of file lists.f90.
subroutine lists::list_searchlinear::list_search_linear_sp_array |
( |
real(sp), dimension(:), intent(in) |
A, |
|
|
real(sp), intent(in) |
VALUE, |
|
|
integer(intg), intent(out) |
POSITION, |
|
|
integer(intg), intent(out) |
ERR, |
|
|
type(varying_string), intent(out) |
ERROR |
|
) |
| |
|
private |
Searches a single precision real array list A for VALUE using the linear search method. If the search is successful POSITION contains the index of the position of VALUE in the list otherwise POSITION is zero.
- Parameters
-
[in] | a | The list to search |
[in] | value | The value to search for |
[out] | position | On exit, the position of value in the list. If value does not exist in the list the returned position is zero. |
[out] | err | The error code |
[out] | error | The error string |
Definition at line 3042 of file lists.f90.