stdlib_array Module

Module for index manipulation and general array handling

The specification of this module is available here.


Functions

public pure function falseloc(array, lbound) result(loc)

License
Creative Commons License
Version
experimental

Return the positions of the false elements in array. Specification

Arguments

Type IntentOptional Attributes Name
logical, intent(in) :: array(:)

Mask of logicals

integer, intent(in), optional :: lbound

Lower bound of array to index

Return Value integer, (count(.not.array))

Locations of false elements

public pure function trueloc(array, lbound) result(loc)

License
Creative Commons License
Version
experimental

Return the positions of the true elements in array. Specification

Arguments

Type IntentOptional Attributes Name
logical, intent(in) :: array(:)

Mask of logicals

integer, intent(in), optional :: lbound

Lower bound of array to index

Return Value integer, (count(array))

Locations of true elements