ScalES-PPM
Loading...
Searching...
No Matches
ppm_compact_mask_index.f90 File Reference

compute index from densely-populated mask More...

Data Types

type  ppm_compact_mask_index::range_compact_2d
 describe contiguous range in 2d mask More...
 
type  ppm_compact_mask_index::range_compact_3d
 
interface  ppm_compact_mask_index::index_from_mask
 compute index from mask array More...
 
interface  ppm_compact_mask_index::index_from_mask_mt
 compute index from mask array, multi-threaded variant More...
 

Modules

module  ppm_compact_mask_index
 ppm_compact_mask_index.f90 supposing you have a mask array and use it in something like a WHERE, then it can be beneficial to only visit those indices of the array expression with the condition evaluating to .TRUE., in case this is relatively sparse or the ensuing conditional is expensive in comparison to the WHERE/FORALL body
 

Functions/Subroutines

pure subroutine ppm_compact_mask_index::build_ranges_2d (mask, offsets, sseq, idx)
 
pure integer function ppm_compact_mask_index::count_ranges_2d (mask, sseq)
 
pure subroutine ppm_compact_mask_index::index_from_mask_2d (idx, mask, offsets, sseq)
 compute index from mask array
 
integer function ppm_compact_mask_index::build_ranges_3d (mask, sizes, strides, sseq, offsets, idx)
 
subroutine ppm_compact_mask_index::index_from_mask_3d (idx, mask, offsets, sseq)
 construct compact index from mask
 
integer function ppm_compact_mask_index::build_ranges_mt_3d (mask, sizes, strides, sseq, offsets, idx)
 
subroutine ppm_compact_mask_index::index_from_mask_mt_3d (idx, mask, offsets, sseq)
 construct compact index from mask
 

Detailed Description

compute index from densely-populated mask

Version
1.0
Author
Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de

Das diesem Bericht zugrundeliegende Vorhaben wurde mit Mitteln des Bundesministeriums für Bildung, und Forschung unter dem Förderkennzeichen 01IH08004E gefördert. Die Verantwortung für den Inhalt dieser Veröffentlichung liegt beim Autor.