ScalES-PPM
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ppm_combinatorics::selection Interface Reference

produce random selection More...

Public Member Functions

subroutine random_selection_i4 (selected, range)
 produce random selection from range
 

Detailed Description

produce random selection

Member Function/Subroutine Documentation

◆ random_selection_i4()

subroutine ppm_combinatorics::selection::random_selection_i4 ( integer(i4), dimension(:), intent(out) selected,
type(iinterval), intent(in) range )

produce random selection from range

normally this procedure is only efficient when SIZE(selected) is significantly smaller than extent_size(range), when SIZE(selected) approaches extent_size(range) it's cheaper to produce a permutation and use the first SIZE(selected) elements

Parameters
[out]selectedarray to fill with random selection from range, where SIZE(selected) <= extent_size(range)
rangeset of integers to selected from

The documentation for this interface was generated from the following file:

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.