Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.stsci.edu/~sontag/spicedocs/cspice/isrchi_c.html
Дата изменения: Sat Dec 17 06:09:11 2005 Дата индексирования: Mon Apr 11 00:03:56 2016 Кодировка: Поисковые слова: http astrokuban.info astrokuban |
Search for a given value within an integer array. Return the index of the first matching array entry, or -1 if the key value was not found.
None.
VARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- value I Key value to be found in array. ndim I Dimension of array. array I Integer array to search. The function returns the index of the first matching array element or -1 if the value is not found.
value is the key value to be found in the array. ndim is the dimension of the array. array is the integer array to be searched.
The function returns the index of the first matching array element in array. If value is not found, isrchi_c returns -1.
None.
None.
The following table shows the value of isrchi_c given the contents of ARRAY and VALUE: ARRAY VALUE isrchi_c ---------- ----- -------- 1, 0, 4, 2 4 2 1, 0, 4, 2 2 3 1, 0, 4, 2 3 -1
None.
Error free. 1) If ndim < 1, the function value is -1.
None.
N.J. Bachman (JPL) W.M. Owen (JPL)
None.
-CSPICE Version 1.0.0, 10-JUL-2000 (NJB) (WMO)
search in an integer array