Expand description
Tiles whose values are computed from their coordinates.
Modules§
Structs§
- Affine
Coordinate - 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. - Memory
Values - 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). - Memory
Values Expand - 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.
origintracks regions selected byTile::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). - Recipe
Coords - The absolute logical coordinates a
Recipeis evaluated at:originplus 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.
- Recipe
Expand - An N-dimensional scalar field evaluated at absolute logical coordinates.
Functions§
- affine_
along - Construct an
AffineCoordinatealong the specified axis. - product_
of - Construct a
Product. - sum_of
- Construct a
Sum.