NTPoly
Functions/Subroutines
sparsematrixalgebramodule_wrp Module Reference

A module for wrapping the sparse algebra routines. More...

Functions/Subroutines

pure subroutine, public scalesparsematrix_wrp (ih_this, constant)
 Wrap the scale a sparse matrix by a constant routine. More...
 
pure subroutine, public incrementsparsematrix_wrp (ih_matA, ih_matB, alpha_in, threshold_in)
 Wrap matrix incrementing function. More...
 
pure real(ntreal) function, public dotsparsematrix_wrp (ih_matA, ih_matB)
 Wrap matrix dot product function. More...
 
subroutine, public pairwisemultiplysparsematrix_wrp (ih_matA, ih_matB, ih_matC)
 Wrap pairwise matrix multiplication function. More...
 
subroutine, public gemm_wrp (ih_matA, ih_matB, ih_matC, IsATransposed, IsBTransposed, alpha, beta, threshold, ih_blocked_memory_pool)
 Wrap matrix multiplication function. More...
 

Detailed Description

A module for wrapping the sparse algebra routines.

Function/Subroutine Documentation

◆ dotsparsematrix_wrp()

pure real(ntreal) function, public sparsematrixalgebramodule_wrp::dotsparsematrix_wrp ( integer(kind=c_int), dimension(size_wrp), intent(in)  ih_matA,
integer(kind=c_int), dimension(size_wrp), intent(in)  ih_matB 
)

Wrap matrix dot product function.

Parameters
[in]ih_matAhandle to Matrix A.
[in,out]ih_matBhandle to Matrix B.

◆ gemm_wrp()

subroutine, public sparsematrixalgebramodule_wrp::gemm_wrp ( integer(kind=c_int), dimension(size_wrp), intent(in)  ih_matA,
integer(kind=c_int), dimension(size_wrp), intent(in)  ih_matB,
integer(kind=c_int), dimension(size_wrp), intent(inout)  ih_matC,
logical(kind=c_bool), intent(in)  IsATransposed,
logical(kind=c_bool), intent(in)  IsBTransposed,
real(ntreal), intent(in)  alpha,
real(ntreal), intent(in)  beta,
real(ntreal), intent(in)  threshold,
integer(kind=c_int), dimension(size_wrp), intent(inout)  ih_blocked_memory_pool 
)

Wrap matrix multiplication function.

Parameters
[in]ih_matAhandle to Matrix A.
[in]ih_matBhandle to Matrix B.
[out]ih_matC= alpha*matA*op( matB ) + beta*matC.
[in]IsATransposedtrue if A is already transposed.
[in]IsBTransposedtrue if B is already transposed.
[in]alphascales the multiplication.
[in]betascales matrix we sum on to.
[in]thresholdfor flushing values to zero.
[in,out]ih_blocked_memory_poolhandle to memory pool.

◆ incrementsparsematrix_wrp()

pure subroutine, public sparsematrixalgebramodule_wrp::incrementsparsematrix_wrp ( integer(kind=c_int), dimension(size_wrp), intent(in)  ih_matA,
integer(kind=c_int), dimension(size_wrp), intent(inout)  ih_matB,
real(ntreal), intent(in)  alpha_in,
real(ntreal), intent(in)  threshold_in 
)

Wrap matrix incrementing function.

Parameters
[in]ih_matAhandle to Matrix A.
[in,out]ih_matBhandle to Matrix B.
[in]alpha_inmultiplier.
[in]threshold_infor flushing values to zero.

◆ pairwisemultiplysparsematrix_wrp()

subroutine, public sparsematrixalgebramodule_wrp::pairwisemultiplysparsematrix_wrp ( integer(kind=c_int), dimension(size_wrp), intent(in)  ih_matA,
integer(kind=c_int), dimension(size_wrp), intent(in)  ih_matB,
integer(kind=c_int), dimension(size_wrp), intent(inout)  ih_matC 
)

Wrap pairwise matrix multiplication function.

Parameters
[in]ih_matAhandle to Matrix A.
[in]ih_matBhandle to Matrix B.
[out]ih_matC= A pairwise B

◆ scalesparsematrix_wrp()

pure subroutine, public sparsematrixalgebramodule_wrp::scalesparsematrix_wrp ( integer(kind=c_int), dimension(size_wrp), intent(inout)  ih_this,
real(ntreal), intent(in)  constant 
)

Wrap the scale a sparse matrix by a constant routine.

Parameters
[in,out]ih_thishandle to the matrix to scale.
[in]constantscale factor.