test1 Program

Uses

  • program~~test1~~UsesGraph program~test1 test1 kinds kinds program~test1->kinds module~foreig foreig program~test1->module~foreig module~foreig->kinds

Calls

program~~test1~~CallsGraph program~test1 test1 interface~eig foreig::eig program~test1->interface~eig proc~eig_rel foreig::eig_rel interface~eig->proc~eig_rel proc~dgeev_rel foreig::dgeev_rel proc~eig_rel->proc~dgeev_rel proc~dggev_rel foreig::dggev_rel proc~eig_rel->proc~dggev_rel proc~dsyev_rel foreig::dsyev_rel proc~eig_rel->proc~dsyev_rel

Variables

Type Attributes Name Initial
real(kind=rk), dimension(:,:), allocatable :: A
real(kind=rk), dimension(:,:), allocatable :: eig_vec
real(kind=rk), dimension(:), allocatable :: eig_val

Source Code

program test1

   use kinds
   use foreig, only: eig
   
   implicit none

   real(rk), dimension(:,:), allocatable :: A
   real(rk), dimension(:,:), allocatable :: eig_vec
   real(rk), dimension(:),   allocatable :: eig_val

   allocate(A(5,5), eig_vec(5,5), eig_val(5))
   call random_number(A)

   call eig(A, eig_vec, eig_val)

   print*, eig_vec
   print*, eig_val

   deallocate(A, eig_vec, eig_val)

end program test1