skbio.tree.BPTree.close_batch#
- BPTree.close_batch(i, engine=None)[source]#
Matching closing parenthesis of each position in a batch.
The batch counterpart of
close: one independent query per element ofi, computed by the selected engine.- Parameters:
- iarray-like of int
Positions to evaluate.
- engine{‘cython’, ‘numba’, ‘fast’}, optional
The compute engine. Defaults to the global
compute_engineoption.'fast'is chosen per tree: see the Notes ofBPTree.
- Returns:
- array of intp
close(i)for each position, in the shape ofi. It is a NumPy array unlessiis an array of another backend, whose backend and device it then has (seeBPTree).
See also
close