Basis.is_derived_from

Basis.is_derived_from(other, inclusive=False)[source]

Check if the basis is derived from a second basis.

Parameters
  • other (btensor.basis.Basis) – Second basis.

  • inclusive (bool) – If True, the function will return True, even if the current basis and other are the same. Default: False.

Returns

True if other is derived from the basis, False otherwise.

Return type

bool