Carry out a brute force search on an array for a given number. Returns -1 if the value is not found.
Interfaced with simpleSearch
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i32) | :: | this(:) | Search this vector |
|||
integer(kind=i32) | :: | val | Number to find in the vector |
Location of i in this
Interfaced with simpleSearch
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i64) | :: | this(:) | Search this vector |
|||
integer(kind=i64) | :: | val | Number to find in the vector |
Location of i in this
Interfaced with simpleSearch
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r32) | :: | this(:) | Search this vector |
|||
real(kind=r32) | :: | val | Number to find in the vector |
Location of i in this
Interfaced with simpleSearch
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64) | :: | this(:) | Search this vector |
|||
real(kind=r64) | :: | val | Number to find in the vector |
Location of i in this