Skip to main content

Convert

Convert() is a generic method, which can be used to change the format of matrix.

INTERFACE
MODULE PURE SUBROUTINE Convert(A, IA, JA, mat)
REAL(DFP), INTENT(IN) :: A(:)
INTEGER(I4B), INTENT(IN) :: IA(:)
INTEGER(I4B), INTENT(IN) :: JA(:)
REAL(DFP), ALLOCATABLE, INTENT(INOUT) :: mat(:, :)
END SUBROUTINE Convert
END INTERFACE
  • This subroutine converts CSRMatrix into a dense storage format A(:), IA(:), JA(:) denotes CSR format.
  • This subroutine can be used for debuggin purpose.