Task: Optimize Fortran Array Statistics Computation
Task: Optimize Fortran Array Statistics Computation: a task in Terminal-Lego-15k (Harbor dataset). You have a Fortran routine that reads a binary file containing a 3D temperature distribution array and computes the minimum, maximum, and mean values. The current implementation reads values one at a…
The task
You have a Fortran routine that reads a binary file containing a 3D temperature distribution array and computes the minimum, maximum, and mean values. The current implementation reads values one at a time in a loop, which is extremely slow compared to NumPy's vectorized operations.
Part of PrimeIntellect/Terminal-Lego-15k.