|
|
@ -104,6 +104,7 @@ module psb_c_mat_mod
|
|
|
|
procedure, pass(a) :: is_upper => psb_c_is_upper
|
|
|
|
procedure, pass(a) :: is_upper => psb_c_is_upper
|
|
|
|
procedure, pass(a) :: is_lower => psb_c_is_lower
|
|
|
|
procedure, pass(a) :: is_lower => psb_c_is_lower
|
|
|
|
procedure, pass(a) :: is_triangle => psb_c_is_triangle
|
|
|
|
procedure, pass(a) :: is_triangle => psb_c_is_triangle
|
|
|
|
|
|
|
|
procedure, pass(a) :: is_symmetric => psb_c_is_symmetric
|
|
|
|
procedure, pass(a) :: is_unit => psb_c_is_unit
|
|
|
|
procedure, pass(a) :: is_unit => psb_c_is_unit
|
|
|
|
procedure, pass(a) :: is_repeatable_updates => psb_c_is_repeatable_updates
|
|
|
|
procedure, pass(a) :: is_repeatable_updates => psb_c_is_repeatable_updates
|
|
|
|
procedure, pass(a) :: get_fmt => psb_c_get_fmt
|
|
|
|
procedure, pass(a) :: get_fmt => psb_c_get_fmt
|
|
|
@ -121,6 +122,7 @@ module psb_c_mat_mod
|
|
|
|
procedure, pass(a) :: set_upper => psb_c_set_upper
|
|
|
|
procedure, pass(a) :: set_upper => psb_c_set_upper
|
|
|
|
procedure, pass(a) :: set_lower => psb_c_set_lower
|
|
|
|
procedure, pass(a) :: set_lower => psb_c_set_lower
|
|
|
|
procedure, pass(a) :: set_triangle => psb_c_set_triangle
|
|
|
|
procedure, pass(a) :: set_triangle => psb_c_set_triangle
|
|
|
|
|
|
|
|
procedure, pass(a) :: set_symmetric => psb_c_set_symmetric
|
|
|
|
procedure, pass(a) :: set_unit => psb_c_set_unit
|
|
|
|
procedure, pass(a) :: set_unit => psb_c_set_unit
|
|
|
|
procedure, pass(a) :: set_repeatable_updates => psb_c_set_repeatable_updates
|
|
|
|
procedure, pass(a) :: set_repeatable_updates => psb_c_set_repeatable_updates
|
|
|
|
|
|
|
|
|
|
|
@ -284,6 +286,7 @@ module psb_c_mat_mod
|
|
|
|
procedure, pass(a) :: is_upper => psb_lc_is_upper
|
|
|
|
procedure, pass(a) :: is_upper => psb_lc_is_upper
|
|
|
|
procedure, pass(a) :: is_lower => psb_lc_is_lower
|
|
|
|
procedure, pass(a) :: is_lower => psb_lc_is_lower
|
|
|
|
procedure, pass(a) :: is_triangle => psb_lc_is_triangle
|
|
|
|
procedure, pass(a) :: is_triangle => psb_lc_is_triangle
|
|
|
|
|
|
|
|
procedure, pass(a) :: is_symmetric => psb_lc_is_symmetric
|
|
|
|
procedure, pass(a) :: is_unit => psb_lc_is_unit
|
|
|
|
procedure, pass(a) :: is_unit => psb_lc_is_unit
|
|
|
|
procedure, pass(a) :: is_repeatable_updates => psb_lc_is_repeatable_updates
|
|
|
|
procedure, pass(a) :: is_repeatable_updates => psb_lc_is_repeatable_updates
|
|
|
|
procedure, pass(a) :: get_fmt => psb_lc_get_fmt
|
|
|
|
procedure, pass(a) :: get_fmt => psb_lc_get_fmt
|
|
|
@ -301,6 +304,7 @@ module psb_c_mat_mod
|
|
|
|
procedure, pass(a) :: set_upper => psb_lc_set_upper
|
|
|
|
procedure, pass(a) :: set_upper => psb_lc_set_upper
|
|
|
|
procedure, pass(a) :: set_lower => psb_lc_set_lower
|
|
|
|
procedure, pass(a) :: set_lower => psb_lc_set_lower
|
|
|
|
procedure, pass(a) :: set_triangle => psb_lc_set_triangle
|
|
|
|
procedure, pass(a) :: set_triangle => psb_lc_set_triangle
|
|
|
|
|
|
|
|
procedure, pass(a) :: set_symmetric => psb_lc_set_symmetric
|
|
|
|
procedure, pass(a) :: set_unit => psb_lc_set_unit
|
|
|
|
procedure, pass(a) :: set_unit => psb_lc_set_unit
|
|
|
|
procedure, pass(a) :: set_repeatable_updates => psb_lc_set_repeatable_updates
|
|
|
|
procedure, pass(a) :: set_repeatable_updates => psb_lc_set_repeatable_updates
|
|
|
|
|
|
|
|
|
|
|
@ -509,6 +513,14 @@ module psb_c_mat_mod
|
|
|
|
end subroutine psb_c_set_triangle
|
|
|
|
end subroutine psb_c_set_triangle
|
|
|
|
end interface
|
|
|
|
end interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
subroutine psb_c_set_symmetric(a,val)
|
|
|
|
|
|
|
|
import :: psb_ipk_, psb_cspmat_type
|
|
|
|
|
|
|
|
class(psb_cspmat_type), intent(inout) :: a
|
|
|
|
|
|
|
|
logical, intent(in), optional :: val
|
|
|
|
|
|
|
|
end subroutine psb_c_set_symmetric
|
|
|
|
|
|
|
|
end interface
|
|
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
interface
|
|
|
|
subroutine psb_c_set_unit(a,val)
|
|
|
|
subroutine psb_c_set_unit(a,val)
|
|
|
|
import :: psb_ipk_, psb_lpk_, psb_cspmat_type
|
|
|
|
import :: psb_ipk_, psb_lpk_, psb_cspmat_type
|
|
|
@ -1215,6 +1227,14 @@ module psb_c_mat_mod
|
|
|
|
end subroutine psb_lc_set_triangle
|
|
|
|
end subroutine psb_lc_set_triangle
|
|
|
|
end interface
|
|
|
|
end interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
subroutine psb_lc_set_symmetric(a,val)
|
|
|
|
|
|
|
|
import :: psb_ipk_, psb_lcspmat_type
|
|
|
|
|
|
|
|
class(psb_lcspmat_type), intent(inout) :: a
|
|
|
|
|
|
|
|
logical, intent(in), optional :: val
|
|
|
|
|
|
|
|
end subroutine psb_lc_set_symmetric
|
|
|
|
|
|
|
|
end interface
|
|
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
interface
|
|
|
|
subroutine psb_lc_set_unit(a,val)
|
|
|
|
subroutine psb_lc_set_unit(a,val)
|
|
|
|
import :: psb_ipk_, psb_lpk_, psb_lcspmat_type
|
|
|
|
import :: psb_ipk_, psb_lpk_, psb_lcspmat_type
|
|
|
@ -1873,6 +1893,19 @@ contains
|
|
|
|
|
|
|
|
|
|
|
|
end function psb_c_is_triangle
|
|
|
|
end function psb_c_is_triangle
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function psb_c_is_symmetric(a) result(res)
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
class(psb_cspmat_type), intent(in) :: a
|
|
|
|
|
|
|
|
logical :: res
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (allocated(a%a)) then
|
|
|
|
|
|
|
|
res = a%a%is_symmetric()
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
res = .false.
|
|
|
|
|
|
|
|
end if
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end function psb_c_is_symmetric
|
|
|
|
|
|
|
|
|
|
|
|
function psb_c_is_unit(a) result(res)
|
|
|
|
function psb_c_is_unit(a) result(res)
|
|
|
|
implicit none
|
|
|
|
implicit none
|
|
|
|
class(psb_cspmat_type), intent(in) :: a
|
|
|
|
class(psb_cspmat_type), intent(in) :: a
|
|
|
@ -2370,6 +2403,20 @@ contains
|
|
|
|
|
|
|
|
|
|
|
|
end function psb_lc_is_triangle
|
|
|
|
end function psb_lc_is_triangle
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function psb_lc_is_symmetric(a) result(res)
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
class(psb_lcspmat_type), intent(in) :: a
|
|
|
|
|
|
|
|
logical :: res
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (allocated(a%a)) then
|
|
|
|
|
|
|
|
res = a%a%is_symmetric()
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
res = .false.
|
|
|
|
|
|
|
|
end if
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end function psb_lc_is_symmetric
|
|
|
|
|
|
|
|
|
|
|
|
function psb_lc_is_unit(a) result(res)
|
|
|
|
function psb_lc_is_unit(a) result(res)
|
|
|
|
implicit none
|
|
|
|
implicit none
|
|
|
|
class(psb_lcspmat_type), intent(in) :: a
|
|
|
|
class(psb_lcspmat_type), intent(in) :: a
|
|
|
|