Group Abstract Group Abstract

Message Boards Message Boards

Contract a rank 2 tensor with a rank 1 tensor?

Posted 6 years ago
POSTED BY: Hollis Williams
2 Replies

By summing over both $i$ and $j$ you’re adding up the entries in the contraction. What you presumably want is something like

Table[Sum[?2[[i, j]]*f[[j]], {j, 1, 3}], {i, 1, 3}]

Of course, as @Hans Milton points out, this is the same as ?2.f.

Posted 6 years ago
POSTED BY: Hans Milton
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard