-
Home
- Cómputo de alto rendimiento
- Programando y afinando software
- Eliminando el desorden
- Eliminando el desorden -
¿Cómo simplificaría usted el siguiente ciclo condicional?
DO I=1,N
A(I) = A(I) * BIF (I .EQ. N/2) A(I) = 0.
ENDDO
Cronometre el siguiente ciclo en su computadora, con y sin la condición. Ejecútelo con tres conjuntos de datos: uno con todos los valores
A(I)
menores que
SMALL
, uno con todos los valores
A(I)
mayores que
SMALL
, y un tercero dividido en partes iguales. ¿Cuándo es mejor dejar la prueba en el ciclo, si es el caso?
PARAMETER (SMALL = 1.E-20)
DO I=1,NIF (ABS(A(I)) .GE. SMALL) THEN
B(I) = B(I) + A(I) * CENDIF
ENDDO
Escriba un programa sencillo que invoque a una subrutina sencilla en su ciclo interno. Cronometre la ejecución del programa. Luego dígale al compilador que compile la rutina en línea, y cronometre nuevamente. Finalmente, modifique el código para realizar las operaciones en el cuerpo del ciclo, y cronometre el código. ¿Cuál opción se ejecutó más rápido? Puede que deba revisar el código máquina generado para imaginar el porqué.
Questions & Answers
how did the oxygen help a human being
how did the nutrition help the plants
Biology is a branch of Natural science which deals/About living Organism.
evolutionary history and relationship of an organism or group of organisms
AI-Robot
cell is the smallest unit of the humanity biologically
Abraham
HOW CAN MAN ORGAN FUNCTION
the diagram of the digestive system
allimentary cannel
Ogenrwot
They formed in two ways first when one sperm and one egg are splited by mitosis or two sperm and two eggs join together
Oluwatobi
Genetics is the study of heredity
Misack
how does twins formed?
Misack
discuss biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles
the study of living organisms and their interactions with one another and their environment.
Wine
discuss the biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles in an essay form
list any five characteristics of the blood cells
Shaker
Got questions? Join the online conversation and get instant answers!
Source:
OpenStax, Cómputo de alto rendimiento. OpenStax CNX. Sep 02, 2011 Download for free at http://cnx.org/content/col11356/1.2
Google Play and the Google Play logo are trademarks of Google Inc.