ConstructMatrixSFromD Interface

public interface ConstructMatrixSFromD

Contents


Module Procedures

private pure subroutine ConstructMatrixSFromD_ldr(dense_matrix, sparse_matrix, threshold_in)

A function that converts a dense matrix to a sparse matrix.

Arguments

Type IntentOptional Attributes Name
type(Matrix_ldr), intent(in) :: dense_matrix

Matrix to convert.

type(Matrix_lsr), intent(inout) :: sparse_matrix

Output matrix.

real(kind=NTREAL), intent(in), optional :: threshold_in

Value for pruning values to zero.

private pure subroutine ConstructMatrixSFromD_ldc(dense_matrix, sparse_matrix, threshold_in)

A function that converts a dense matrix to a sparse matrix.

Arguments

Type IntentOptional Attributes Name
type(Matrix_ldc), intent(in) :: dense_matrix

The matrix to convert.

type(Matrix_lsc), intent(inout) :: sparse_matrix

The sparse output matrix.

real(kind=NTREAL), intent(in), optional :: threshold_in

Value for pruning values to zero.