Result containers

Binned results. Raw accumulators carry the …SumsAndCounts suffix and add across processes and time steps; the bare names are the averaged views.

StructureFunctions.StructureFunctionObjects.HelmholtzDecomposition2D — Type
HelmholtzDecomposition2D(distance_bins, rotational_sums, rotational_counts,
                         divergent_sums, divergent_counts,
                         longitudinal_values, transverse_values)

Result of the 2D isotropic Helmholtz decomposition computed from binned longitudinal/transverse second-order structure functions. Rotational and divergent components are derived quantities, not pairwise operators.

source
StructureFunctions.StructureFunctionObjects.StructureFunction — Type
StructureFunction{FT, OT, BT, VT}

Mean pair statistic for operator. For distance-bin edges of length B+1, values has shape (B, batch...). For HarmonicNodes, its leading axis has one value per node. Empty pair bins contain NaN.

distance holds the original bin edges or harmonic nodes. Use midpoints to obtain representative separations for bins. Value arrays retain their execution backend; to_host copies their numerical buffers to host memory.

source
StructureFunctions.StructureFunctionObjects.StructureFunction2DSumsAndCounts — Type
StructureFunction2DSumsAndCounts{FT, OT, BT, VT, MT, CT, AT}

Joint histogram of separation and a second bin coordinate. sums and counts have matching shape (B_distance, B_second, batch...); each edge vector has one more element than its corresponding histogram axis. second_axis is the source the second coordinate reads from each pair: the operator value (InvariantValueAxis()) or the angle of the separation (SeparationAngleAxis).

sums accumulates actual pair values, including weights when supplied. counts stores integer pair counts or floating-point mass for weighted or split contributions. Divide by the appropriate total and bin widths explicitly when constructing a probability density.

source
StructureFunctions.StructureFunctionObjects.StructureFunctionSumsAndCounts — Type
StructureFunctionSumsAndCounts{FT, OT, BT, VT}

Raw pair sums and normalization with matching shape (B, batch...). Distance edges have length B+1; harmonic results have one slot per node. Unweighted pair counts are integers. Weighted calculations store floating-point pair mass. Add compatible results before dividing sums by counts. Integer addition checks for overflow. to_host copies both numerical arrays to the host.

source
StructureFunctions.StructureFunctionObjects.StructureFunctionTensor — Type
StructureFunctionTensor(order, distance_bins, values)

Averaged binned tensor structure function — the mean tensor $D_{i…}(r)$ per distance bin (the sums ./ counts reduction of a StructureFunctionTensorSumsAndCounts, with the empty-bin guard count == 0 → NaN). For tensor order P and spatial dimension D, values has leading axes (D, D, ..., D, n_bins, auxiliary...) with P repeated component axes. This is the default result of calculate_structure_function_tensor; pass StructureFunctionTensorSumsAndCounts as its result type for the raw accumulator.

source
StructureFunctions.StructureFunctionObjects.to_host — Method
to_host(result)

Copy numerical result buffers to host Arrays while preserving operators, bin metadata, tensor order, and batch axes. Device-to-host copies complete before this call returns. Host input buffers are copied as well.

Named tuples of results, including single-pass calculations, are converted recursively.

source