Документ взят из кэша поисковой машины. Адрес оригинального документа : http://xmm.vilspa.esa.es/sas/8.0.0/doc/ssclib/node9.html
Дата изменения: Wed Jul 2 03:52:38 2008
Дата индексирования: Fri Sep 5 17:54:04 2008
Кодировка:

Поисковые слова: закон вина
Return smallest true index of a logical vector XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


ssclib (ssclib-3.33.4) [xmmsas_20080701_1801-8.0.0]

Return largest true index Array or vector scalar Rectangular bounds of the Home Index

Meta Index / Home Page / General-purpose array-processing utilities / Array or vector scalar

Return smallest true index of a logical vector

  integer function smallestTrueIndex(maskVector)
    logical(bool), intent(in) :: maskVector(:)
  end function

Examples:

  smallestTrueIndex(((/0, 1, 1/) > 0)) ! returns 2
  smallestTrueIndex(((/1, 1, 1/) > 0)) ! returns 1
  smallestTrueIndex(((/0, 0, 0/) > 0)) ! returns 4, ie 1 above vector limit.

size(maskVector)+1 is also returned if the vector is of zero size.



XMM-Newton SOC/SSC -- 2008-07-01