NAG Library Manual, Mark 27.3
Interfaces:  FL   CL   CPP   AD 

NAG CL Interface Introduction
Example description

nag_sort_realvec_vec_search (m01ndc) Example Program Results

Vector to be searched is:
    0.5     0.6     1.1     1.2     1.3     1.4     2.1     2.3
    2.4     4.1     5.8     5.9     6.5     6.6     8.6     9.9


Example 1

  Search for item      2.1 returned index:    6
  Search for item      0.4 returned index:   -1
  Search for item      7.1 returned index:   13
  Search for item     10.0 returned index:   15


Example 2

  Search for item      2.1 returned index:    6
  Search for item      0.4 returned index:   -1
  Search for item      7.1 returned index:   13
  Search for item     10.0 returned index:   15