ott.geometry.geometry.Geometry.subset

ott.geometry.geometry.Geometry.subset#

Geometry.subset(src_ixs, tgt_ixs, **kwargs)[source]#

Subset rows or columns of a geometry.

Parameters:
  • src_ixs (Optional[Array]) – Row indices. If None, use all rows.

  • tgt_ixs (Optional[Array]) – Column indices. If None, use all columns.

  • kwargs (Any) – Keyword arguments to override the initialization.

Return type:

Geometry

Returns:

The modified geometry.