Finding maximum of an array
I am trying to optimize a procedure that tries to locate the maximum value
in an array of single. I am working with huge arrays, so this is the
bottleneck of my program.
for J := N to M do
if (ARow[j] >= RX) then begin
L := J;
RX := ARow^[j];
end;
Is there any Fastcode function that would allow me reduce the speed of such
a procedure or is there any existing RTL function that would help me.
Richard
.
Relevant Pages
- Re: internal procedure cant use array of derived type from main
... Richard Maine wrote: ... >host association. ... All the subroutine really needs to know is the array index, ... Richard E. Hawkins, Asst. ... (comp.lang.fortran) - Re: Seriously struggling with C
... from the high end to the low end of an array. ... const unsigned char *p2 = s2; ... It was a contrived example for my "exactly perfect" claim. ... I was responding to this false claim by Richard Harter: ... (comp.lang.c) - Re: Gaussian statics law
... Richard you are taking things out of context since the arrays ... "Terman was referring to close spaced of the parasitic form, ... and he also mentions the Yagi array. ... he wrote the comments on page 185 in "Antennas". ... (rec.radio.amateur.antenna) - Re: print variable inside function
... Richard it is great that you are at least throwing out code that you are trying, keep up the effort and continue to come back here for help. ... But to experiment blindly can be dangerous and at best frustrating, but I do love the challenge of solving a particular problem on my own. ... I hate package solutions, don't seem to learn much from them. ... Indexing an array with a variable is one of the fundamental things to do with an array, and is clearly demonstrated in the manual. ... (comp.lang.php) - Re: print variable inside function
... it the right way the first time. ... I hate package solutions, don't seem to learn much from them. ... My comment about experimentation was made under the assumption that richard ... the array problem one for example. ... (comp.lang.php) |
|