Skip to main content

Module procedural

Module procedural 

Source
Expand description

Tiles whose values are computed from their coordinates.

Modules§

affine_along
product_of
sum_of

Structs§

AffineCoordinate
A one-dimensional affine coordinate expression, offset + coefficient * coordinate[axis].
Constant
A procedural field holding one value, which may be a runtime scalar.
DivGuard
How division handles a denominator too small to divide by. The default maps it to zero.
Factors
The product of one factor per contracted axis, in contraction order: K₀ ⊗ K₁ ⊗ … ⊗ Kₙ₋₁. Each factor must read a distinct axis; this is not checked.
MemoryValues
A memory tile’s values, read one at a time at the coordinates they are asked at. An axis a read does not name is read where the tile’s window sits on it, so a tile cut to one owner’s batch and head reads that batch and head; a coordinate past the buffer reads zero. A recipe itself, evaluated at its own coordinates, so it composes with any other (Sum).
MemoryValuesExpand
Phase
The fractional part a rational coordinate mapping leaves behind, scaled: coefficient * frac((coord[axis] * numerator_scale + numerator_offset) / divisor).
Procedural
Runtime state of a procedural source. origin tracks regions selected by Tile::at. Its recipe computes at its own element; a read names the element it wants.
Product
Pointwise product of two recipes: (A * B)(coords) = A(coords) * B(coords).
RecipeCoords
The absolute logical coordinates a Recipe is evaluated at: origin plus read offset.
Sum
Pointwise sum of two recipes: (A + B)(coords) = A(coords) + B(coords).

Enums§

TapSupport
Which taps contribute to the sum of a normalized separable filter factor.

Traits§

Reads
Coordinate dependence of a recipe, queried while a kernel is expanded.
Recipe
An N-dimensional scalar field evaluated at absolute logical coordinates.
RecipeExpand
An N-dimensional scalar field evaluated at absolute logical coordinates.

Functions§

affine_along
Construct an AffineCoordinate along the specified axis.
product_of
Construct a Product.
sum_of
Construct a Sum.