Basis.get_transformation

Basis.get_transformation(other, variance=(1, 1))[source]

Get transformation matrix to another basis as a Tensor with general variance.

Parameters
  • other (Basis) – Second basis.

  • variance (tuple[int, int]) – Variance of transformation matrix.

Returns

Transformation matrix.

Return type

Tensor