A function that converts a dense matrix to a sparse matrix.
Type | Intent | Optional | 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. |
A function that converts a dense matrix to a sparse matrix.
Type | Intent | Optional | 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. |