NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
isrchne.f File Reference

Searches a vector for the first element not equal to a target. More...

Go to the source code of this file.

Functions/Subroutines

function isrchne (n, x, incx, target)
 Program history log:
 

Detailed Description

Searches a vector for the first element not equal to a target.

Author
Stephen Gilbert
Date
1999-02-11

Definition in file isrchne.f.

Function/Subroutine Documentation

◆ isrchne()

function isrchne (   n,
integer, dimension(*)  x,
  incx,
integer  target 
)

Program history log:

  • Stephen Gilbert 1999-02-11
Parameters
[in]nNumber of elements to be searched.
[in]xReal or integer array of dimension (n-1) * |incx| + 1. Array x contains the vector to be searched.
[in]incxIncrement between elements of the searched array.
[in]targetValue for which to search in the array.
Returns
index Index of the first element equal or not equal to target. If target is not found, n+1 is returned. If n <= 0, 0 is returned.
Note
This code and documentation was taken directly from the man page for routine ISRCHNE on a CRAY UNICOS system.
Author
Stephen Gilbert
Date
1999-02-11

Definition at line 20 of file isrchne.f.