NTPoly
Functions/Subroutines
loadbalancermodule Module Reference

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

Functions/Subroutines

subroutine, public permutematrix (mat_in, mat_out, permutation, memorypool_in)
 Apply a permutation to a matrix. More...
 
subroutine, public undopermutematrix (mat_in, mat_out, permutation, memorypool_in)
 Undo a permutation applied to a matrix. More...
 

Detailed Description

Module for load balancing the matrix multiplication calculation.

Function/Subroutine Documentation

◆ permutematrix()

subroutine, public loadbalancermodule::permutematrix ( type(distributedsparsematrix_t), intent(in)  mat_in,
type(distributedsparsematrix_t), intent(inout)  mat_out,
type(permutation_t), intent(in)  permutation,
type(distributedmatrixmemorypool_t), intent(inout), optional  memorypool_in 
)

Apply a permutation to a matrix.

Parameters
[in]mat_inmatrix to permute.
[out]mat_outpermuted matrix.
[in]permutationto apply.
[in,out]memorypool_inmemory pool to use. Optional.

◆ undopermutematrix()

subroutine, public loadbalancermodule::undopermutematrix ( type(distributedsparsematrix_t), intent(in)  mat_in,
type(distributedsparsematrix_t), intent(inout)  mat_out,
type(permutation_t), intent(in)  permutation,
type(distributedmatrixmemorypool_t), intent(inout), optional  memorypool_in 
)

Undo a permutation applied to a matrix.

Parameters
[in]mat_inmatrix to undo permutation of.
[out]mat_outunpermuted matrix.
[in]permutationto remove.
[in,out]memorypool_inmemory pool to use. Optional.