1
$\begingroup$

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

$\endgroup$
2
  • $\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 '20 at 17:27
  • $\begingroup$ Related: mathematica.stackexchange.com/questions/28563/… $\endgroup$
    – Michael E2
    Dec 5 '20 at 20:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.