MATLAB PARALLEL COMPUTING TOOLBOX - S Guía de usuario Pagina 51

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 656
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 50
Classification of Variables in parfor-Loops
2-23
Classification of Variables in parfor-Loops
When a name in a parfor-loop is recognized as referring to a variable, the variable is
classified into one of several categories. A parfor-loop generates an error if it contains
any variables that cannot be uniquely categorized or if any variables violate their
category restrictions.
Classification Description
“Loop Variable”
on page 2-25
Loop index
“Sliced
Variables” on
page 2-27
Arrays whose segments are operated on by different iterations of the
loop
“Broadcast
Variables” on
page 2-31
Variables defined before the loop whose value is required inside the
loop, but never assigned inside the loop
“Reduction
Variables” on
page 2-32
Variables that accumulate a value across iterations of the loop,
regardless of iteration order
“Temporary
Variables” on
page 2-39
Variables created inside the loop, and not accessed outside the loop
Each of these variable classifications appears in this code fragment:
Vista de pagina 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 655 656

Comentarios a estos manuales

Sin comentarios