Guest User

Untitled

a guest
Apr 26th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   allocate(G(N, N))
  2.  
  3.   G = 0
  4.  
  5.   ! Loop through columns of G
  6.   do i = 1, N
  7.      call random_number(G(i:N, i))
  8.      G(i:N, i) = G(i:N, i) + 1
  9.   end do
  10.  
  11.   A = matmul(G, transpose(G))
  12.  
  13.   deallocate(G)
Add Comment
Please, Sign In to add comment