CXML
WHENEQ (3sciport)
Searches a vector for all elements matching a target value
SYNOPSIS
Call WHENEQ( n, x, incx ,target, index, nn )
ARGUMENTS
n Integer.
The number of elements to be searched.
x Integer, Logical, or Real vector.
The input array to be searched.
incx Integer.
The increment between elements of vector x. For contiguous
elements, incx = 1.
target Integer, Logical, or Real.
The value searched for in vector x.
index Integer vector.
An output integer vector containing the indices of elements
in vector x which match the target value.
nn Integer.
The number of elements in vector x which match the target
value.
DESCRIPTION
Subroutine WHENEQ returns all locations in vector x that match a target
value. The locations are recorded in integer vector index.
For equations and other information, see Volume 3: UNICOS Math and
Scientific Library Reference Manual SR-2081 7.0, Cray Research, Inc.
CXML Home Page Index of CXML Routines