Tensor.is_compatible

Tensor.is_compatible(other)[source]

Check if the basis of the tensor is compatible with another tensor’s basis along each axis.

Parameters

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

Returns

True if the bases are compatible along each axis, False otherwise.

Return type

bool