get_diag_dv Function

public function get_diag_dv(mat)

Arguments

Type IntentOptional AttributesName
real(kind=DP), intent(in), DIMENSION(:,:):: mat

Return Value real(kind=DP), DIMENSION(size(mat,1))


Calls

proc~~get_diag_dv~~CallsGraph proc~get_diag_dv get_diag_dv proc~assert_eq2 assert_eq2 proc~get_diag_dv->proc~assert_eq2

Called by

proc~~get_diag_dv~~CalledByGraph proc~get_diag_dv get_diag_dv interface~get_diag get_diag interface~get_diag->proc~get_diag_dv

Contents

Source Code


Source Code

	FUNCTION get_diag_dv(mat)
	REAL(DP), DIMENSION(:,:), INTENT(IN) :: mat
	REAL(DP), DIMENSION(size(mat,1)) :: get_diag_dv
	INTEGER(I4B) :: j
	j=assert_eq2(size(mat,1),size(mat,2),'get_diag_dv')
	do j=1,size(mat,1)
		get_diag_dv(j)=mat(j,j)
	end do
	END FUNCTION get_diag_dv