NTPoly
Data Types | Functions/Subroutines
permutationmodule Module Reference

Module for load balancing the matrix multiplication calculation. More...

Data Types

type  permutation_t
 A data structure for storing permutations. More...
 

Functions/Subroutines

subroutine, public constructdefaultpermutation (this, matrix_dimension)
 Constructs a permutation that preserves the original order. More...
 
subroutine, public constructreversepermutation (this, matrix_dimension)
 Constructs a permutation that reverses the original order. More...
 
subroutine, public constructrandompermutation (this, matrix_dimension)
 Constructs a permutation that has a random order. More...
 
pure subroutine, public destructpermutation (this)
 Destruct a permutation object. More...
 

Detailed Description

Module for load balancing the matrix multiplication calculation.

Function/Subroutine Documentation

◆ constructdefaultpermutation()

subroutine, public permutationmodule::constructdefaultpermutation ( type(permutation_t), intent(inout)  this,
integer, intent(in)  matrix_dimension 
)

Constructs a permutation that preserves the original order.

Parameters
[in,out]thisthe permutation to construct.
[in]matrix_dimensionsize of the matrix.

◆ constructrandompermutation()

subroutine, public permutationmodule::constructrandompermutation ( type(permutation_t), intent(inout)  this,
integer, intent(in)  matrix_dimension 
)

Constructs a permutation that has a random order.

Parameters
[in,out]thisthe permutation to construct.
[in]matrix_dimensionsize of the matrix. Implements Knuth shuffle.

◆ constructreversepermutation()

subroutine, public permutationmodule::constructreversepermutation ( type(permutation_t), intent(inout)  this,
integer, intent(in)  matrix_dimension 
)

Constructs a permutation that reverses the original order.

Parameters
[in,out]thisthe permutation to construct.
[in]matrix_dimensionsize of the matrix.

◆ destructpermutation()

pure subroutine, public permutationmodule::destructpermutation ( type(permutation_t), intent(inout)  this)

Destruct a permutation object.

Parameters
[in,out]thisthe permutation to destruct.