![]() |
The Open FUSION Toolkit 1.0.0-beta7
An open-source framework for fusion and plasma science and engineering
|
Portable array sorting and search functions.
oft_c_sort.cxx are used.Data Types | |
| interface | search_array |
| Search a sorted integer array. More... | |
| interface | sort_array |
| Sort an array in ascending order. More... | |
| interface | sort_matrix |
| Sort rows of a matrix and associated index vector by the first column in ascending order. More... | |
Functions/Subroutines | |
| integer(i4) function | search4 (item, list, n) |
| Integer(4) implementation of search_array. | |
| integer(i8) function | search8 (item, list, n) |
| Integer(8) implementation of search_array. | |
| subroutine | sort4 (ia, n) |
| Integer(4) implementation of sort_array. | |
| subroutine | sort8 (ia, n) |
| Integer(8) implementation of sort_array. | |
| subroutine | sorta4 (ia, n, m) |
| Integer(4) 2D implementation of sort_array. | |
| subroutine | sorta8 (ia, n, m) |
| Integer(8) 2D implementation of sort_array. | |
|
private |
Integer(4) implementation of search_array.
| [in] | item | Value to search for |
| [in] | n | Size of array |
| [in] | list | Array to search [n] |
|
private |
Integer(8) implementation of search_array.
| [in] | item | Value to search for |
| [in] | n | Size of array |
| [in] | list | Array to search [n] |
Integer(4) implementation of sort_array.
| [in] | n | Number of values in array |
| [in,out] | ia | Array to sort |
Integer(8) implementation of sort_array.
| [in] | n | Number of values in array |
| [in,out] | ia | Array to sort |
|
private |
Integer(4) 2D implementation of sort_array.
| [in] | n | Number of values in first dimension of array |
| [in] | m | Number of values in second dimension of array |
| [in,out] | ia | Array to sort |
|
private |
Integer(8) 2D implementation of sort_array.
| [in] | n | Number of values in first dimension of array |
| [in] | m | Number of values in second dimension of array |
| [in,out] | ia | Array to sort |