You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
114 lines
3.3 KiB
Fortran
114 lines
3.3 KiB
Fortran
module psb_c_serial_cbind_mod
|
|
use iso_c_binding
|
|
use psb_base_mod
|
|
use psb_objhandle_mod
|
|
use psb_base_tools_cbind_mod
|
|
|
|
|
|
interface
|
|
module function psb_c_cvect_get_nrows(xh) bind(c) result(res)
|
|
integer(psb_c_ipk_) :: res
|
|
type(psb_c_cvector) :: xh
|
|
|
|
type(psb_c_vect_type), pointer :: vp
|
|
integer(psb_c_ipk_) :: info
|
|
end function psb_c_cvect_get_nrows
|
|
end interface
|
|
|
|
interface
|
|
module function psb_c_cvect_f_get_cpy(v,xh) bind(c) result(res)
|
|
integer(psb_c_ipk_) :: res
|
|
complex(c_float_complex) :: v(*)
|
|
type(psb_c_cvector) :: xh
|
|
end function psb_c_cvect_f_get_cpy
|
|
end interface
|
|
|
|
|
|
interface
|
|
module function psb_c_cvect_zero(xh) bind(c) result(res)
|
|
integer(psb_c_ipk_) :: res
|
|
type(psb_c_cvector) :: xh
|
|
end function psb_c_cvect_zero
|
|
end interface
|
|
|
|
interface
|
|
module function psb_c_cvect_f_get_pnt(xh) bind(c) result(res)
|
|
type(c_ptr) :: res
|
|
type(psb_c_cvector) :: xh
|
|
end function psb_c_cvect_f_get_pnt
|
|
end interface
|
|
|
|
interface
|
|
module function psb_c_cmat_get_nrows(mh) bind(c) result(res)
|
|
integer(psb_c_ipk_) :: res
|
|
type(psb_c_cspmat) :: mh
|
|
end function psb_c_cmat_get_nrows
|
|
end interface
|
|
|
|
interface
|
|
module function psb_c_cmat_get_ncols(mh) bind(c) result(res)
|
|
integer(psb_c_ipk_) :: res
|
|
type(psb_c_cspmat) :: mh
|
|
end function psb_c_cmat_get_ncols
|
|
end interface
|
|
|
|
interface
|
|
module function psb_c_cmat_name_print(mh,name) bind(c) result(res)
|
|
integer(psb_c_ipk_) :: res
|
|
type(psb_c_cspmat) :: mh
|
|
character(c_char) :: name(*)
|
|
end function psb_c_cmat_name_print
|
|
end interface
|
|
|
|
interface
|
|
module function psb_c_cvect_set_scal(x,val) bind(c) result(info)
|
|
type(psb_c_cvector) :: x
|
|
integer(psb_c_ipk_) :: info
|
|
complex(c_float_complex), value :: val
|
|
end function psb_c_cvect_set_scal
|
|
end interface
|
|
|
|
interface
|
|
module function psb_c_cvect_set_scal_bound(x,val,ifirst,ilast) bind(c) result(info)
|
|
type(psb_c_cvector) :: x
|
|
integer(psb_c_ipk_) :: info
|
|
integer(psb_c_ipk_), value :: ifirst, ilast
|
|
complex(c_float_complex) :: val
|
|
end function psb_c_cvect_set_scal_bound
|
|
end interface
|
|
|
|
interface
|
|
module function psb_c_cvect_set_vect(x,val,n) bind(c) result(info)
|
|
type(psb_c_cvector) :: x
|
|
integer(psb_c_ipk_) :: info
|
|
integer(psb_c_ipk_), value :: n
|
|
complex(c_float_complex) :: val(*)
|
|
end function psb_c_cvect_set_vect
|
|
end interface
|
|
|
|
interface
|
|
module function psb_c_cvect_set_entry(x,index,val) bind(c) result(info)
|
|
type(psb_c_cvector) :: x
|
|
integer(psb_c_ipk_) :: info
|
|
integer(psb_c_ipk_), value :: index
|
|
complex(c_float_complex), value :: val
|
|
end function psb_c_cvect_set_entry
|
|
end interface
|
|
|
|
interface
|
|
module function psb_c_cvect_get_entry(x,index) bind(c) result(res)
|
|
type(psb_c_cvector) :: x
|
|
integer(psb_c_ipk_), value :: index
|
|
complex(c_float_complex) :: res
|
|
end function psb_c_cvect_get_entry
|
|
end interface
|
|
|
|
interface
|
|
module function psb_c_cvect_clone(xh,yh) bind(c) result(info)
|
|
integer(psb_c_ipk_) :: info
|
|
type(psb_c_cvector) :: xh,yh
|
|
end function psb_c_cvect_clone
|
|
end interface
|
|
|
|
end module psb_c_serial_cbind_mod
|