ordering integer array
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 329 articles for 0.011 sec
Re: ordering integer array     

Group: comp.lang.fortran · Group Profile · Search for ordering integer array in comp.lang.fortran
Author: Ron Ford
Date: Aug 21, 2008 16:21

...implicit none private public :: selection_sort integer, parameter :: string_length = 30 type, public...zippy use sort3 implicit none integer, parameter :: array_size = 1000 type (address...ve got a way to order integers but need to take...bunch of spare parts like: integer, parameter :: string_length = 30 , and reading...I've already got the array. As to topicality, there are...
Show full article (5.77Kb) · Show article thread
Re: ordering integer array     

Group: comp.lang.fortran · Group Profile · Search for ordering integer array in comp.lang.fortran
Author: glen herrmannsfeldt
Date: Aug 19, 2008 12:25

...() gives you a portable method. SUBROUTINE init_random_seed() INTEGER :: i, n, clock ... work-around, I just created an integer array of one hundred dimensions and...If 2048 bits (64 32 bit INTEGERs) is enough for cryptographic applications, ...() for the size of the array. The standard also says that the array size must be greater than or equal to the returned ...
Show full article (1.59Kb) · Show article thread
Re: ordering integer array     

Group: comp.lang.fortran · Group Profile · Search for ordering integer array in comp.lang.fortran
Author: Steven G. Kargl
Date: Aug 19, 2008 11:50

...(1) PUT taking a rank 1 array and (2) the required size of that rank 1 array. As a work-around, I just created an integer array of one hundred dimensions and .... If 2048 bits (64 32 bit INTEGERs) is enough for cryptographic applications, ...() for the size of the array. The standard also says that the ... It's a rank 1 array. It the array is larger than needed,...
Show full article (2.25Kb) · Show article thread
Re: ordering integer array     

Group: comp.lang.fortran · Group Profile · Search for ordering integer array in comp.lang.fortran
Author: Steven G. Kargl
Date: Aug 18, 2008 22:14

... gives you a portable method. SUBROUTINE init_random_seed() INTEGER :: i, n, clock INTEGER, DIMENSION(:), ALLOCATABLE :: seed CALL RANDOM_SEED(size = n) ALLOCATE(seed(n))...-around, I just created an integer array of one hundred dimensions ...for the size of the array. -- Steve http://troutmask.apl.washington...
Show full article (1.29Kb) · Show article thread
Re: ordering integer array     

Group: comp.lang.fortran · Group Profile · Search for ordering integer array in comp.lang.fortran
Author: Ron Ford
Date: Aug 18, 2008 20:28

...document this call but under GNU fortran, integer size .... CALL RANDOM_SEED(size) size is the... size of seed which is an array. see http://gcc.gnu.org/onlinedocs/...a work-around, I just created an integer array of one hundred dimensions and assigned the clock to each element. ... do ii =1, bins ** running with array bounds (-fbounds-check for g95) checking ...
Show full article (3.13Kb) · Show article thread
Re: ordering integer array     

Group: comp.lang.fortran · Group Profile · Search for ordering integer array in comp.lang.fortran
Author: Ron Ford
Date: Aug 23, 2008 21:02

... than mine. I appear to have been answering a different question. If this was the question, then yes, it is fine. An array of size 1 is still an array. There is nothing restricting the size from being 1. Your previous response is quite understandable. Ron Ford chose to respond to 3 different ...
Show full article (1.39Kb) · Show article thread
Re: ordering integer array     

Group: comp.lang.fortran · Group Profile · Search for ordering integer array in comp.lang.fortran
Author: Ron Ford
Date: Aug 23, 2008 20:12

...include rand48() which generates 48 random bits, and uses a 48 bit seed. That is much better, but not good enough for all uses. -- glen Usually they were interested in an integer on a closed interval smaller than RAND_MAX, not unlike rolling an eight-sided die. The problem that I saw in code other than mine was outcomes getting unequal weight. If RAND_MAX is 32,005, and you ...
Show full article (1.42Kb) · Show article thread
Re: ordering integer array     

Group: comp.lang.fortran · Group Profile · Search for ordering integer array in comp.lang.fortran
Author: Ron Ford
Date: Aug 22, 2008 01:29

... contains subroutine swap(i,j) integer, intent (in) :: i,j type ...end module sort3 use sort3 implicit none integer, parameter:: sides = 8...type (address), dimension (array_size) :: data_array integer:: b, ii, i, counter, & tab,...you can assume that an array of "structures" is necessarily the...ratchets up trials by succesive orders of magnitude. One of my...
Show full article (4.97Kb) · Show article thread
Re: ordering integer array     

Group: comp.lang.fortran · Group Profile · Search for ordering integer array in comp.lang.fortran
Author: e p chandler
Date: Aug 21, 2008 21:55

... is an array of integers. What is a slick way to order C? I've got all the...  contains     subroutine swap(i,j)       integer, intent (in) :: i,j       type (... sort3 use sort3 implicit none integer, parameter:: sides = 8 ! next 2 ...'t compile You have an array of elements of derived type (... you can assume that an array of "structures" is necessarily the ...
Show full article (5.69Kb) · Show article thread
Re: ordering integer array     

Group: comp.lang.fortran · Group Profile · Search for ordering integer array in comp.lang.fortran
Author: Ron Ford
Date: Aug 21, 2008 19:53

...is an array of integers. What is a slick way to order C? I've got all the...), dimension(:), intent (inout) & :: array_arg integer :: current_size integer :: big current_size = size (array_arg)... contains subroutine swap(i,j) integer, intent (in) :: i,j type (... sort3 use sort3 implicit none integer, parameter:: sides = 8 ! next 2 ...
Show full article (3.92Kb) · Show article thread
1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · next