Module illuminate

Module illuminate 

Source
Expand description

Illumination of a pair of adjacent stacks: the outgoing fields and the internal fields between them, with the pullback of both.

Upstream: treams.SMatrices.illuminate with a second S-matrix (smat=).

Modulesยง

saved ๐Ÿ”’
Fixed saved state for external and internal illumination fields.

Structsยง

IlluminateGradient
Cotangents of the inputs of illuminate, in the order of its arguments.
IlluminateResidual
What illuminate saves for its pullback: copies of the blocks of both stacks, the incoming fields, the internal-field solve and the downgoing internal fields.

Constantsยง

PARALLEL_SCAN_ROWS ๐Ÿ”’
Rows from which the finite check of the illumination inputs scans the ten matrices in parallel.
PARALLEL_SNAPSHOT_ROWS ๐Ÿ”’
Rows from which the eight recorded input blocks are copied concurrently, when the Rayon pool has more than one thread.
WORKER_SNAPSHOT_ROWS ๐Ÿ”’
Rows from which a one-thread pool copies the recorded input blocks on its worker rather than on the calling thread.

Functionsยง

illuminate
Illuminate a pair of stacks. Returns outgoing up/down and internal up/down fields; each input and output matrix has one column per independent illumination.
illuminate_value
The fields of illuminate without the data its pullback needs. Inputs can be row- or column-major; only the operator and thin fields are owned.
illumination_fields ๐Ÿ”’
Validate the inputs and compute every field of illuminate.

Type Aliasesยง

InternalFields ๐Ÿ”’
Outgoing up, outgoing down and internal down fields, and the internal up solve.