PMATCH Name
PMATCH Purpose
Find a given pattern in a 1-d array.
Category
Calling Sequence
pmatch, s, p, in Inputs
s = array to search. in
p = pattern array. in
Keyword Parameters
Keywords
/ALL means return index of all matches, else just first.
Outputs
in = index of match. out
-1 means no match found.
Common Blocks
Notes
Notes: useful if you need to find a sequence of values
occuring somewhere in an array. Longer pattern
arrays give slower searches.
Modification History
R. Sterner, 1997 Apr 30
Copyright (C) 1997, Johns Hopkins University/Applied Physics Laboratory
This software may be used, copied, or redistributed as long as it is not
sold and this copyright notice is reproduced on each copy made. This
routine is provided as is without any express or implied warranties
whatsoever. Other limitations apply as described in the file disclaimer.txt.