Examples
Basic Examples (2)
A simple tensor contraction of a tensor with an identity matrix:
TensorReduce does not simplify the tensor:
IdentityTensorReduce simplifies the tensor:
Use Inactive when the dimensions of the identity tensor are explicit:
IdentityTensorReduce simplifies the tensor:
Scope (6)
Define assumptions for a matrix X and scalars a, b and c:
A tensor expression involving the identity tensor:
Contract this tensor with another tensor:
Expand the tensor into a sum of tensors:
Use IdentityTensorReduce to eliminate contracted identity tensors:
The ResourceFunction "FromTensor" can be used to rewrite this expression in terms of Dot:
Publisher
Carl Woll
Version History
-
1.1.0
– 17 April 2025
-
1.0.0
– 09 November 2020
Related Resources