View Raw SPL
/****************************************************************************
*                                                                           *
*   SERMATCH.SPL Copyright 2008 (C) DSP Development Corporation             *
*                                                                           *
*   Author:      Randy Race                                                 *
*                                                                           *
*   Synopsis:    Returns the indices of of values found in a target series  *
*                                                                           *
*   Revisions:   25 Jul 2008     RRR     Creation                           *
*                                                                           *
****************************************************************************/

#if @HELP_SERMATCH

    SERMATCH

    Purpose: Returns the indices where values of a source series are found
             in a target series.

    Syntax:  SERMATCH(source, target)

               source - A series, the series to process.

               target - A series, the values to search for.


    Returns: A series, the indices of the source values that are found
             in the target series.

    Example:
             W1: {1, 2, 3, 4, 2, 3, 1}
             W2: {2, 3}
             W3: sermatch(w1, w2)

             W3 == {2, 3, 5, 6} indicating that W1[2], W1[3], W1[5]
             and W1[6] are found in W2.

    Remarks:
             SERMATCH only operates on real series.

             SERMATCH is implemented as a DLL - sermatch.dll.

             See DELMATCH to delete the values that occur in a target
             series.

    See Also:
             Conditional Operators
             Delmatch
#endif