iall in Fortran Wiki
## Description Reduces with bitwise and the elements of `array` along dimension `dim` if the corresponding element in `mask` is `true`. ## Standard [[Fortran 2008]] and later ## Class Transformational function ## Syntax ~~~~~~~~~~~~~~~~~~~~ {: lang=fortran } result = iall(array[, mask]) result = iall(array, dim[, mask]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ## Arguments - `array` - Shall be an array of type `integer` - `dim` - (Optional) shall be a scalar of type `integer` with a value in the range from 1 to $n,ドル where $n$ equals the rank of `array`. - `mask` - (Optional) shall be of type `logical` and either be a scalar or an array of the same shape as `array`. ## Return value The result is of the same type as `array`. If `dim` is absent, a scalar with the bitwise ALL of all elements in `array` is returned. Otherwise, an array of rank $n-1,ドル where $n$ equals the rank of `array`, and a shape similar to that of `array` with dimension `dim` dropped is returned. ## Example ~~~~~~~~~~~~~~~~~~~~ {: lang=fortran } program test_iall integer(1) :: a(2) a(1) = b'00100100' a(2) = b'01101010' ! prints 00100000 print '(b8.8)', iall(a) end program ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ## See also [[iany]], [[iparity]], [[iand]] category: intrinsics
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル