Utility Functionality

class boxtree.timing.TimingResult(*args, **kwargs)[source]

Interface for returned timing data.

This supports accessing timing results via a mapping interface, along with combining results via merge().

merge(other)[source]

Merge this result with another by adding together common fields.

class boxtree.timing.TimingFuture[source]

Returns timing data for a potentially asynchronous operation.

result()[source]

Return a TimingResult. May block.

done()[source]

Return True if the operation is complete.

class boxtree.constant_one.ConstantOneTreeIndependentDataForWrangler[source]
__init__()
class boxtree.constant_one.ConstantOneExpansionWrangler(tree_indep: boxtree.fmm.TreeIndependentDataForWrangler, traversal: boxtree.traversal.FMMTraversalInfo)[source]

This implements the ‘analytical routines’ for a Green’s function that is constant 1 everywhere. For ‘charges’ of ‘ones’, this should get every particle a copy of the particle count.

Timing results returned by this wrangler contain the field ops_elapsed, which counts approximately the number of floating-point operations required.