Copy boolean sparse matrix in yale format f to t.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(yale_sparse), | intent(in) | :: | f |
Matrix to copy |
||
type(yale_sparse), | intent(out) | :: | t |
Destination matrix |
subroutine copy_yale_sparse(f, t)
!! Copy boolean sparse matrix in yale format f to t.
implicit none
type(yale_sparse), intent(in) :: f
!! Matrix to copy
type(yale_sparse), intent(out) :: t
!! Destination matrix
allocate(t%ri(size(f%ri)))
allocate(t%ci(size(f%ci)))
t%n = f%n
t%ri = f%ri
t%ci = f%ci
end subroutine copy_yale_sparse