Convert
Convert()
is a generic method, which can be used to change the format of matrix.
- đź“ť Interface 1
- Interface 2
- Interface 3
- â—‰ Close
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.
INTERFACE
MODULE PURE SUBROUTINE Convert(To, From)
REAL(DFP), ALLOCATABLE, INTENT(INOUT) :: To(:, :)
TYPE(CSRMatrix_), INTENT(IN) :: From
END SUBROUTINE Convert
END INTERFACE
This subroutine converts sparsematrix to dense storage format A(:), IA(:), JA(:)
denotes CSR format.
This method is used for defining ASSIGNMENT operator.
This subroutine converts sparsematrix to dense storage format A(:), IA(:), JA(:)
denotes CSR format.
INTERFACE
MODULE PURE SUBROUTINE Convert(To, From)
TYPE(RealMatrix_), INTENT(INOUT) :: To
TYPE(CSRMatrix_), INTENT(IN) :: From
END SUBROUTINE Convert
END INTERFACE