Tensor.get_common_basis

Tensor.get_common_basis(other)[source]

Get tuple of common bases between two tensors along each axis.

Parameters

other (btensor.tensor.Tensor) – The second tensor.

Returns

A tuple, where each element is the common basis between the two tensors along the respective axis.

Return type

btensor.basistuple.BasisTuple