Tensor.change_basis
- Tensor.change_basis(basis)[source]
Change basis of tensor.
Slice(None) can be used to indicate no transformation. In contrast to project, this function will first test if the tensor can be fully represented in the new basis and raise a BasisError otherwise.
- Parameters
basis (NBasis) – New basis of tensor.
- Returns
Tensor in new basis.
- Return type
Self