Elemental procedure
Applies to: fortran
An elemental Fortran procedure is written for scalar arguments but can be applied elementwise to arrays.
elemental real function square(x)
real, intent(in) :: x
square = x*x
end function
See also: pure-procedure, array-slicing-fortran