e3j.utils.options.TensorProduct

class e3j.utils.options.TensorProduct(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Evaluation strategy for TensorProduct.

Values:

SPARSE: Pull-back inputs by CG indices, multiply, then aggregate. DENSE: Evaluate via einsum on dense CG coefficient array. FUSED: Dispatch to custom CUDA kernel via XLA-FFI (requires e3j_ops).

Methods

__getitem__(name)

Return the member matching name.

__iter__()

Return members in definition order.

__len__()

Return the number of members (no aliases)

Attributes

FUSED

SPARSE

DENSE