The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



Find


Unit:SDL_vector
Class: TVector, TIntVector
Declaration: function Find (LowElem, HighElem: integer; value: double): integer; { class TVector }
function Find (LowElem, HighElem, value: integer): integer; { class TIntVector }

The method Find searches the vector element which is closest to Value and returns the index of the found element. The search range is specified by the parameters LowElem and HighElem.

Hint: Setting both parameters LowElem and HighElem to zero values forces a search through all vector elements.



Last Update: 2023-Feb-06