Deallocate a boolean sparse matrix (in Yale format)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(yale_sparse), | intent(inout) | :: | m |
Matrix to free |
subroutine matfree(m)
!! Deallocate a boolean sparse matrix (in Yale format)
implicit none
type(yale_sparse), intent(inout) :: m !! Matrix to free
if(allocated(m%ri)) deallocate(m%ri)
if(allocated(m%ci)) deallocate(m%ci)
m%n=0_ip
end subroutine matfree