ott.geometry.geometry.Geometry.subset#

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

Subset rows or columns of a geometry.

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

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

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

Return type

Geometry

Returns

The subsetted geometry.