populating an allocatable array
Group: comp.lang.fortran · Group Profile · Search for real entry in comp.lang.fortran
Author: Wade Ward
Date: Sep 1, 2007 15:46
... to familiarize myself with fortran's array capabilites: program matrix1 implicit none real, allocatable :: A(:,:), C(:,:) real, dimension(4) :: B integer :: i, N, M read *, N, M allocate (A(N, N...3 4 5 6 7 8 9 10 11 12 13 14 15 16 }} with real entries. It seems to be one of the big selling points of fortran is that there... N squared that is populated so that the ith entry is i*1.0. Can you shoehorn this into a...
Show full article (1.50Kb) |