ConstructRandomPermutation Subroutine

public subroutine ConstructRandomPermutation(this, matrix_dimension)

Constructs a permutation that has a random order. Implements Knuth shuffle.

Arguments

Type IntentOptional AttributesName
type(Permutation_t), intent(inout) :: this

A permutation that reverses the original order.

integer, intent(in) :: matrix_dimension

The size of the matrix.


Contents

None