I am working with symbolic tensors within Mathematica and I wanted to ask if there is a way to have a symbolic identity tensor.

  • $\begingroup$ See TagSet? E.g. id /: (id[n_].m_ /; Dimensions[m][[1]] == n) = m? You'll likely need a decent number of rules though, and the order they are input does matter. $\endgroup$
    – eyorble
    Dec 4, 2020 at 17:27
  • $\begingroup$ Related: mathematica.stackexchange.com/questions/28563/… $\endgroup$
    – Michael E2
    Dec 5, 2020 at 20:22
  • $\begingroup$ @MichaelE2 how to create a fourth order identity tensor in MMA? $\endgroup$
    Mar 23, 2022 at 1:50


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.